Capstone Project: NLP1 Group 4: Industrial safety. NLP based Chatbot¶

Context:¶

The database comes from one of the biggest industry in Brazil and in the world. It is an urgent need for industries/companies around the globe to understand why employees still suffer some injuries/accidents in plants. Sometimes they also die in such environment.

Data Description:¶

This The database is basically records of accidents from 12 different plants in 03 different countries which every line in the data is an occurrence of an accident.

Columns description:

  • Data: timestamp or time/date information
  • Countries: which country the accident occurred (anonymised)
  • Local: the city where the manufacturing plant is located (anonymised)
  • Industry sector: which sector the plant belongs to
  • Accident level: from I to VI, it registers how severe was the accident (I means not severe but VI means very severe)
  • Potential Accident Level: Depending on the Accident Level, the database also registers how severe the accident could have been (due to other factors involved in the accident)
  • Genre: if the person is male of female
  • Employee or Third Party: if the injured person is an employee or a third party
  • Critical Risk: some description of the risk involved in the accident
  • Description: Detailed description of how the accident happened.

Dataset : https://www.kaggle.com/ihmstefanini/industrial-safety-and-health-analytics-database

In [ ]:
!pip install unidecode
Requirement already satisfied: unidecode in /usr/local/lib/python3.10/dist-packages (1.3.8)
In [ ]:
import pandas as pd
import numpy as np

import seaborn as sns
import matplotlib.pyplot as plt

%matplotlib inline

pd.set_option('display.float_format', lambda x: '{:,.2f}'.format(x))
pd.set_option('display.max_columns', None)

sns.set(style="whitegrid", color_codes=True)

import warnings
warnings.filterwarnings('ignore')

import plotly.express as px

#from plotly.offline import iplot, plot
#import plotly.graph_objs as go
#import plotly.io as pio

from bs4 import BeautifulSoup

import re
import unidecode

# Helps to visualize the wordcloud
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator

from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler

import tensorflow as tf
from gensim.scripts.glove2word2vec import glove2word2vec
from gensim.models import Word2Vec, KeyedVectors

from nltk.tokenize import word_tokenize
import nltk


from sklearn.model_selection import train_test_split

from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier

from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import GradientBoostingClassifier

import xgboost as xgb
from lightgbm import LGBMClassifier

from sklearn import metrics
from sklearn.metrics import classification_report
from sklearn.metrics import accuracy_score, f1_score, confusion_matrix, recall_score, precision_score, roc_auc_score

from sklearn.model_selection import GridSearchCV
from sklearn import svm
from imblearn.over_sampling import SMOTE
from imblearn.under_sampling import TomekLinks

from gensim.models import Word2Vec
In [ ]:
nltk.download('stopwords')
nltk.download('punkt')
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
[nltk_data] Downloading package punkt to /root/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
Out[ ]:
True

Milestone 1¶

Step 1: Import the Data¶

In [ ]:
from google.colab import drive
drive.mount('/content/drive')
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
In [ ]:
#Navigating to drive path where data source is
%cd '/content/drive/MyDrive/Colab Notebooks'
/content/drive/MyDrive/Colab Notebooks
In [ ]:
data=pd.read_csv('IHMStefanini_industrial_safety_and_health_database_with_accidents_description.csv')
In [ ]:
#viewing data
data.head()
Out[ ]:
Unnamed: 0 Data Countries Local Industry Sector Accident Level Potential Accident Level Genre Employee or Third Party Critical Risk Description
0 0 2016-01-01 00:00:00 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f...
1 1 2016-01-02 00:00:00 Country_02 Local_02 Mining I IV Male Employee Pressurized Systems During the activation of a sodium sulphide pum...
2 2 2016-01-06 00:00:00 Country_01 Local_03 Mining I III Male Third Party (Remote) Manual Tools In the sub-station MILPO located at level +170...
3 3 2016-01-08 00:00:00 Country_01 Local_04 Mining I I Male Third Party Others Being 9:45 am. approximately in the Nv. 1880 C...
4 4 2016-01-10 00:00:00 Country_01 Local_04 Mining IV IV Male Third Party Others Approximately at 11:45 a.m. in circumstances t...
In [ ]:
#shape of data
data.shape
Out[ ]:
(425, 11)
In [ ]:
#lets check fields type
data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 425 entries, 0 to 424
Data columns (total 11 columns):
 #   Column                    Non-Null Count  Dtype 
---  ------                    --------------  ----- 
 0   Unnamed: 0                425 non-null    int64 
 1   Data                      425 non-null    object
 2   Countries                 425 non-null    object
 3   Local                     425 non-null    object
 4   Industry Sector           425 non-null    object
 5   Accident Level            425 non-null    object
 6   Potential Accident Level  425 non-null    object
 7   Genre                     425 non-null    object
 8   Employee or Third Party   425 non-null    object
 9   Critical Risk             425 non-null    object
 10  Description               425 non-null    object
dtypes: int64(1), object(10)
memory usage: 36.6+ KB
In [ ]:
#checking is any data is null
data.isnull().sum()
Out[ ]:
Unnamed: 0                  0
Data                        0
Countries                   0
Local                       0
Industry Sector             0
Accident Level              0
Potential Accident Level    0
Genre                       0
Employee or Third Party     0
Critical Risk               0
Description                 0
dtype: int64

Step 2: Data cleansing¶

In [ ]:
data.head(1)
Out[ ]:
Unnamed: 0 Data Countries Local Industry Sector Accident Level Potential Accident Level Genre Employee or Third Party Critical Risk Description
0 0 2016-01-01 00:00:00 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f...
In [ ]:
# removing column Unnamed: 0
data.drop("Unnamed: 0", inplace=True, axis=1)
In [ ]:
#checking for duplicated data
data.duplicated().sum()
Out[ ]:
7

There are 7 duplicated data which we can drop

In [ ]:
#lets drop duplicated data
data.drop_duplicates(inplace=True)
data.reset_index(drop=True, inplace=True)
In [ ]:
data.shape
Out[ ]:
(418, 10)

Important Data Summary

  • Need to remove first column unnamed
  • Change column name to Date instead of Data
  • Change column name to Gender instead of Genre
  • Change column type to Date instead of Object
  • We can rename column Employee or Third Party to Employees Type and Countries to Country
  • Rest all columns of Object/categorical type
  • No data is null
  • removed 7 duplicated data
  • We have 418 unique records
In [ ]:
data.head(1)
Out[ ]:
Data Countries Local Industry Sector Accident Level Potential Accident Level Genre Employee or Third Party Critical Risk Description
0 2016-01-01 00:00:00 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f...
In [ ]:
#renaming column Data, Countries, Genre and Employee or Third Party
data.rename(columns={"Data":"Date",
                     "Countries":"Country",
                     "Genre":"Gender",
                     "Employee or Third Party":"Employee Type"
                     }, inplace=True)
In [ ]:
data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 418 entries, 0 to 417
Data columns (total 10 columns):
 #   Column                    Non-Null Count  Dtype 
---  ------                    --------------  ----- 
 0   Date                      418 non-null    object
 1   Country                   418 non-null    object
 2   Local                     418 non-null    object
 3   Industry Sector           418 non-null    object
 4   Accident Level            418 non-null    object
 5   Potential Accident Level  418 non-null    object
 6   Gender                    418 non-null    object
 7   Employee Type             418 non-null    object
 8   Critical Risk             418 non-null    object
 9   Description               418 non-null    object
dtypes: object(10)
memory usage: 32.8+ KB
In [ ]:
data.columns
Out[ ]:
Index(['Date', 'Country', 'Local', 'Industry Sector', 'Accident Level',
       'Potential Accident Level', 'Gender', 'Employee Type', 'Critical Risk',
       'Description'],
      dtype='object')
In [ ]:
#lets check unique values for all columns

print('Unique values in each columns:')

for i in (['Date', 'Country', 'Local', 'Industry Sector', 'Accident Level',
       'Potential Accident Level', 'Gender', 'Employee Type', 'Critical Risk']):
  print('-'*100)
  print('Total Unique values in '+i+ " :"+ str(data[i].nunique()))
  print()
  print(data[i].unique())
Unique values in each columns:
----------------------------------------------------------------------------------------------------
Total Unique values in Date :287

['2016-01-01 00:00:00' '2016-01-02 00:00:00' '2016-01-06 00:00:00'
 '2016-01-08 00:00:00' '2016-01-10 00:00:00' '2016-01-12 00:00:00'
 '2016-01-16 00:00:00' '2016-01-17 00:00:00' '2016-01-19 00:00:00'
 '2016-01-26 00:00:00' '2016-01-28 00:00:00' '2016-01-30 00:00:00'
 '2016-02-01 00:00:00' '2016-02-02 00:00:00' '2016-02-04 00:00:00'
 '2016-02-06 00:00:00' '2016-02-07 00:00:00' '2016-02-08 00:00:00'
 '2016-02-21 00:00:00' '2016-02-25 00:00:00' '2016-02-09 00:00:00'
 '2016-02-10 00:00:00' '2016-02-15 00:00:00' '2016-02-14 00:00:00'
 '2016-02-13 00:00:00' '2016-02-16 00:00:00' '2016-02-17 00:00:00'
 '2016-02-19 00:00:00' '2016-02-20 00:00:00' '2016-02-18 00:00:00'
 '2016-02-22 00:00:00' '2016-02-24 00:00:00' '2016-02-29 00:00:00'
 '2016-02-26 00:00:00' '2016-02-27 00:00:00' '2016-03-02 00:00:00'
 '2016-03-03 00:00:00' '2016-03-04 00:00:00' '2016-03-05 00:00:00'
 '2016-03-06 00:00:00' '2016-03-09 00:00:00' '2016-03-11 00:00:00'
 '2016-03-13 00:00:00' '2016-03-12 00:00:00' '2016-03-14 00:00:00'
 '2016-03-16 00:00:00' '2016-03-10 00:00:00' '2016-03-17 00:00:00'
 '2016-03-18 00:00:00' '2016-03-19 00:00:00' '2016-03-22 00:00:00'
 '2016-03-25 00:00:00' '2016-03-30 00:00:00' '2016-03-31 00:00:00'
 '2016-04-01 00:00:00' '2016-04-03 00:00:00' '2016-04-02 00:00:00'
 '2016-03-24 00:00:00' '2016-04-04 00:00:00' '2016-04-05 00:00:00'
 '2016-04-07 00:00:00' '2016-04-08 00:00:00' '2016-04-11 00:00:00'
 '2016-04-14 00:00:00' '2016-04-16 00:00:00' '2016-04-15 00:00:00'
 '2016-04-17 00:00:00' '2016-04-18 00:00:00' '2016-04-21 00:00:00'
 '2016-04-22 00:00:00' '2016-04-23 00:00:00' '2016-04-26 00:00:00'
 '2016-04-28 00:00:00' '2016-04-29 00:00:00' '2016-04-30 00:00:00'
 '2016-05-01 00:00:00' '2016-05-02 00:00:00' '2016-05-04 00:00:00'
 '2016-05-03 00:00:00' '2016-05-05 00:00:00' '2016-05-11 00:00:00'
 '2016-05-12 00:00:00' '2016-05-14 00:00:00' '2016-05-17 00:00:00'
 '2016-05-19 00:00:00' '2016-05-18 00:00:00' '2016-05-22 00:00:00'
 '2016-05-20 00:00:00' '2016-05-24 00:00:00' '2016-05-25 00:00:00'
 '2016-05-27 00:00:00' '2016-05-26 00:00:00' '2016-06-01 00:00:00'
 '2016-06-02 00:00:00' '2016-06-03 00:00:00' '2016-06-04 00:00:00'
 '2016-06-05 00:00:00' '2016-06-08 00:00:00' '2016-06-07 00:00:00'
 '2016-06-10 00:00:00' '2016-06-13 00:00:00' '2016-06-16 00:00:00'
 '2016-06-18 00:00:00' '2016-06-17 00:00:00' '2016-06-19 00:00:00'
 '2016-06-21 00:00:00' '2016-06-22 00:00:00' '2016-06-23 00:00:00'
 '2016-06-24 00:00:00' '2016-06-29 00:00:00' '2016-07-02 00:00:00'
 '2016-07-04 00:00:00' '2016-07-08 00:00:00' '2016-07-07 00:00:00'
 '2016-07-09 00:00:00' '2016-07-10 00:00:00' '2016-07-11 00:00:00'
 '2016-07-14 00:00:00' '2016-07-15 00:00:00' '2016-07-16 00:00:00'
 '2016-07-18 00:00:00' '2016-07-20 00:00:00' '2016-07-21 00:00:00'
 '2016-07-23 00:00:00' '2016-07-27 00:00:00' '2016-07-29 00:00:00'
 '2016-07-30 00:00:00' '2016-08-02 00:00:00' '2016-08-01 00:00:00'
 '2016-08-04 00:00:00' '2016-08-11 00:00:00' '2016-08-12 00:00:00'
 '2016-08-14 00:00:00' '2016-08-15 00:00:00' '2016-08-18 00:00:00'
 '2016-08-19 00:00:00' '2016-08-22 00:00:00' '2016-08-24 00:00:00'
 '2016-08-25 00:00:00' '2016-08-29 00:00:00' '2016-08-27 00:00:00'
 '2016-08-30 00:00:00' '2016-09-01 00:00:00' '2016-09-02 00:00:00'
 '2016-09-04 00:00:00' '2016-09-03 00:00:00' '2016-09-06 00:00:00'
 '2016-09-05 00:00:00' '2016-09-13 00:00:00' '2016-09-12 00:00:00'
 '2016-09-15 00:00:00' '2016-09-17 00:00:00' '2016-09-16 00:00:00'
 '2016-09-20 00:00:00' '2016-09-21 00:00:00' '2016-09-22 00:00:00'
 '2016-09-27 00:00:00' '2016-09-29 00:00:00' '2016-09-30 00:00:00'
 '2016-10-01 00:00:00' '2016-10-03 00:00:00' '2016-10-04 00:00:00'
 '2016-10-08 00:00:00' '2016-10-10 00:00:00' '2016-10-11 00:00:00'
 '2016-10-13 00:00:00' '2016-10-18 00:00:00' '2016-10-20 00:00:00'
 '2016-10-23 00:00:00' '2016-10-24 00:00:00' '2016-10-26 00:00:00'
 '2016-10-27 00:00:00' '2016-10-29 00:00:00' '2016-11-04 00:00:00'
 '2016-11-08 00:00:00' '2016-11-11 00:00:00' '2016-11-13 00:00:00'
 '2016-11-19 00:00:00' '2016-11-21 00:00:00' '2016-11-23 00:00:00'
 '2016-11-25 00:00:00' '2016-11-28 00:00:00' '2016-11-29 00:00:00'
 '2016-11-30 00:00:00' '2016-12-01 00:00:00' '2016-12-08 00:00:00'
 '2016-12-09 00:00:00' '2016-12-10 00:00:00' '2016-12-12 00:00:00'
 '2016-12-13 00:00:00' '2016-12-15 00:00:00' '2016-12-16 00:00:00'
 '2016-12-19 00:00:00' '2016-12-23 00:00:00' '2016-12-22 00:00:00'
 '2016-12-26 00:00:00' '2016-12-28 00:00:00' '2016-12-30 00:00:00'
 '2016-12-31 00:00:00' '2017-01-02 00:00:00' '2017-01-05 00:00:00'
 '2017-01-06 00:00:00' '2017-01-07 00:00:00' '2017-01-08 00:00:00'
 '2017-01-09 00:00:00' '2017-01-10 00:00:00' '2017-01-12 00:00:00'
 '2017-01-14 00:00:00' '2017-01-17 00:00:00' '2017-01-20 00:00:00'
 '2017-01-21 00:00:00' '2017-01-23 00:00:00' '2017-01-24 00:00:00'
 '2017-01-25 00:00:00' '2017-01-27 00:00:00' '2017-01-29 00:00:00'
 '2017-01-28 00:00:00' '2017-01-31 00:00:00' '2017-02-01 00:00:00'
 '2017-02-04 00:00:00' '2017-02-05 00:00:00' '2017-02-07 00:00:00'
 '2017-02-08 00:00:00' '2017-02-09 00:00:00' '2017-02-13 00:00:00'
 '2017-02-14 00:00:00' '2017-02-15 00:00:00' '2017-02-16 00:00:00'
 '2017-02-17 00:00:00' '2017-02-23 00:00:00' '2017-02-25 00:00:00'
 '2017-02-26 00:00:00' '2017-02-27 00:00:00' '2017-03-01 00:00:00'
 '2017-03-02 00:00:00' '2017-03-04 00:00:00' '2017-03-06 00:00:00'
 '2017-03-08 00:00:00' '2017-03-09 00:00:00' '2017-03-10 00:00:00'
 '2017-03-15 00:00:00' '2017-03-18 00:00:00' '2017-03-22 00:00:00'
 '2017-03-25 00:00:00' '2017-03-31 00:00:00' '2017-04-04 00:00:00'
 '2017-04-05 00:00:00' '2017-04-07 00:00:00' '2017-04-06 00:00:00'
 '2017-04-10 00:00:00' '2017-04-08 00:00:00' '2017-04-11 00:00:00'
 '2017-04-13 00:00:00' '2017-04-12 00:00:00' '2017-04-23 00:00:00'
 '2017-04-19 00:00:00' '2017-04-25 00:00:00' '2017-04-24 00:00:00'
 '2017-04-28 00:00:00' '2017-04-29 00:00:00' '2017-04-30 00:00:00'
 '2017-05-05 00:00:00' '2017-05-06 00:00:00' '2017-05-10 00:00:00'
 '2017-05-16 00:00:00' '2017-05-17 00:00:00' '2017-05-18 00:00:00'
 '2017-05-19 00:00:00' '2017-05-23 00:00:00' '2017-05-30 00:00:00'
 '2017-06-04 00:00:00' '2017-06-09 00:00:00' '2017-06-11 00:00:00'
 '2017-06-14 00:00:00' '2017-06-15 00:00:00' '2017-06-17 00:00:00'
 '2017-06-18 00:00:00' '2017-06-24 00:00:00' '2017-06-20 00:00:00'
 '2017-06-23 00:00:00' '2017-06-19 00:00:00' '2017-06-22 00:00:00'
 '2017-06-29 00:00:00' '2017-07-04 00:00:00' '2017-07-05 00:00:00'
 '2017-07-06 00:00:00' '2017-07-09 00:00:00']
----------------------------------------------------------------------------------------------------
Total Unique values in Country :3

['Country_01' 'Country_02' 'Country_03']
----------------------------------------------------------------------------------------------------
Total Unique values in Local :12

['Local_01' 'Local_02' 'Local_03' 'Local_04' 'Local_05' 'Local_06'
 'Local_07' 'Local_08' 'Local_10' 'Local_09' 'Local_11' 'Local_12']
----------------------------------------------------------------------------------------------------
Total Unique values in Industry Sector :3

['Mining' 'Metals' 'Others']
----------------------------------------------------------------------------------------------------
Total Unique values in Accident Level :5

['I' 'IV' 'III' 'II' 'V']
----------------------------------------------------------------------------------------------------
Total Unique values in Potential Accident Level :6

['IV' 'III' 'I' 'II' 'V' 'VI']
----------------------------------------------------------------------------------------------------
Total Unique values in Gender :2

['Male' 'Female']
----------------------------------------------------------------------------------------------------
Total Unique values in Employee Type :3

['Third Party' 'Employee' 'Third Party (Remote)']
----------------------------------------------------------------------------------------------------
Total Unique values in Critical Risk :33

['Pressed' 'Pressurized Systems' 'Manual Tools' 'Others'
 'Fall prevention (same level)' 'Chemical substances' 'Liquid Metal'
 'Electrical installation' 'Confined space'
 'Pressurized Systems / Chemical Substances'
 'Blocking and isolation of energies' 'Suspended Loads' 'Poll' 'Cut'
 'Fall' 'Bees' 'Fall prevention' '\nNot applicable' 'Traffic' 'Projection'
 'Venomous Animals' 'Plates' 'Projection/Burning' 'remains of choco'
 'Vehicles and Mobile Equipment' 'Projection/Choco' 'Machine Protection'
 'Power lock' 'Burn' 'Projection/Manual Tools'
 'Individual protection equipment' 'Electrical Shock'
 'Projection of fragments']
In [ ]:
#lets check values distibution
print('Values distribution in each columns:')

for i in (['Country', 'Local', 'Industry Sector', 'Accident Level',
       'Potential Accident Level', 'Gender', 'Employee Type', 'Critical Risk']):
  print('-'*100)
  print('Value distribution for '+i+ " :")
  print()
  print(data[i].value_counts())
  print()
  print(data[i].value_counts(normalize=True))
Values distribution in each columns:
----------------------------------------------------------------------------------------------------
Value distribution for Country :

Country_01    248
Country_02    129
Country_03     41
Name: Country, dtype: int64

Country_01   0.59
Country_02   0.31
Country_03   0.10
Name: Country, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Local :

Local_03    89
Local_05    59
Local_01    56
Local_04    55
Local_06    46
Local_10    41
Local_08    27
Local_02    23
Local_07    14
Local_12     4
Local_09     2
Local_11     2
Name: Local, dtype: int64

Local_03   0.21
Local_05   0.14
Local_01   0.13
Local_04   0.13
Local_06   0.11
Local_10   0.10
Local_08   0.06
Local_02   0.06
Local_07   0.03
Local_12   0.01
Local_09   0.00
Local_11   0.00
Name: Local, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Industry Sector :

Mining    237
Metals    134
Others     47
Name: Industry Sector, dtype: int64

Mining   0.57
Metals   0.32
Others   0.11
Name: Industry Sector, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Accident Level :

I      309
II      40
III     31
IV      30
V        8
Name: Accident Level, dtype: int64

I     0.74
II    0.10
III   0.07
IV    0.07
V     0.02
Name: Accident Level, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Potential Accident Level :

IV     141
III    106
II      95
I       45
V       30
VI       1
Name: Potential Accident Level, dtype: int64

IV    0.34
III   0.25
II    0.23
I     0.11
V     0.07
VI    0.00
Name: Potential Accident Level, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Gender :

Male      396
Female     22
Name: Gender, dtype: int64

Male     0.95
Female   0.05
Name: Gender, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Employee Type :

Third Party             185
Employee                178
Third Party (Remote)     55
Name: Employee Type, dtype: int64

Third Party            0.44
Employee               0.43
Third Party (Remote)   0.13
Name: Employee Type, dtype: float64
----------------------------------------------------------------------------------------------------
Value distribution for Critical Risk :

Others                                       229
Pressed                                       24
Manual Tools                                  20
Chemical substances                           17
Cut                                           14
Venomous Animals                              13
Projection                                    13
Bees                                          10
Fall                                           9
Vehicles and Mobile Equipment                  8
Fall prevention (same level)                   7
remains of choco                               7
Pressurized Systems                            7
Fall prevention                                6
Suspended Loads                                6
Blocking and isolation of energies             3
Pressurized Systems / Chemical Substances      3
Power lock                                     3
Liquid Metal                                   3
Machine Protection                             2
Electrical Shock                               2
Poll                                           1
Individual protection equipment                1
Projection/Manual Tools                        1
Burn                                           1
Electrical installation                        1
Projection/Choco                               1
Projection/Burning                             1
Plates                                         1
Confined space                                 1
Traffic                                        1
\nNot applicable                               1
Projection of fragments                        1
Name: Critical Risk, dtype: int64

Others                                      0.55
Pressed                                     0.06
Manual Tools                                0.05
Chemical substances                         0.04
Cut                                         0.03
Venomous Animals                            0.03
Projection                                  0.03
Bees                                        0.02
Fall                                        0.02
Vehicles and Mobile Equipment               0.02
Fall prevention (same level)                0.02
remains of choco                            0.02
Pressurized Systems                         0.02
Fall prevention                             0.01
Suspended Loads                             0.01
Blocking and isolation of energies          0.01
Pressurized Systems / Chemical Substances   0.01
Power lock                                  0.01
Liquid Metal                                0.01
Machine Protection                          0.00
Electrical Shock                            0.00
Poll                                        0.00
Individual protection equipment             0.00
Projection/Manual Tools                     0.00
Burn                                        0.00
Electrical installation                     0.00
Projection/Choco                            0.00
Projection/Burning                          0.00
Plates                                      0.00
Confined space                              0.00
Traffic                                     0.00
\nNot applicable                            0.00
Projection of fragments                     0.00
Name: Critical Risk, dtype: float64
  • Data is from 2016-01-01 to 2017-7-09, around 19 months of data
  • Data is from three country, 60% data is from country 1m 30% from country 2
  • Accidents are recorderd across 12 locality, local_9. local_11 and local_12 seems to have lowest accidents
  • There are 3 industry sector, around 57% accident are from mining sector
  • There are 5 types of accident and 6 types of potential accident. Most of accidents are of level II, III and IV around 80%
  • Most of employees seems male, around 95%
  • There are 3 categories of employees type. (Remote employees may not mean work from home)
  • Most of critical risk are categorized as 'Others' around 55%, implying there could be too many types of risk categories or the data needs to be refined properly
In [ ]:
# lets convert Date column to date type and extract year, month, day, weekday, week_no

data['Date']= pd.to_datetime(data['Date'])

data['Year'] = data['Date'].apply(lambda x : x.year)
data['Month'] = data['Date'].apply(lambda x : x.month)
data['Day'] = data['Date'].apply(lambda x : x.day)
data['Weekday'] = data['Date'].apply(lambda x : x.day_name())
data['WeekofYear'] = data['Date'].apply(lambda x : x.weekofyear)
In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53

Lets create new feature Season to see if there is any connection of accidents and season

(source: https://www.acko.com/travel-tips/best-time-to-visit-brazil/)

image.png

In [ ]:
month2seasons_lambda = lambda x: 'Spring' if x in [9, 10, 11] else ('Summer' if x in [12, 1, 2,3] else ('Autumn' if x in [4, 5, 6] else 'Winter'))

data['season']=data['Month'].apply(month2seasons_lambda)
In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer

Lets create one more feature of Holiday

In [ ]:
from holidays import country_holidays
In [ ]:
brazil_holidays = country_holidays('BR', years=[2016,2017])

holiday_list=[]

for date, holiday_name in brazil_holidays.items():
    print(f"{date}: {holiday_name}")
    holiday_list.append(date)
2016-01-01: Confraternização Universal
2016-03-25: Sexta-feira Santa
2016-04-21: Tiradentes
2016-05-01: Dia do Trabalhador
2016-09-07: Independência do Brasil
2016-10-12: Nossa Senhora Aparecida
2016-11-02: Finados
2016-11-15: Proclamação da República
2016-12-25: Natal
2017-01-01: Confraternização Universal
2017-04-14: Sexta-feira Santa
2017-04-21: Tiradentes
2017-05-01: Dia do Trabalhador
2017-09-07: Independência do Brasil
2017-10-12: Nossa Senhora Aparecida
2017-11-02: Finados
2017-11-15: Proclamação da República
2017-12-25: Natal
In [ ]:
data['is_holiday']=data['Date'].apply( lambda x: 1 if x in holiday_list else 0)
In [ ]:
data.head(2)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season is_holiday
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer 1
1 2016-01-02 Country_02 Local_02 Mining I IV Male Employee Pressurized Systems During the activation of a sodium sulphide pum... 2016 1 2 Saturday 53 Summer 0
In [ ]:
data['is_holiday'].value_counts()
Out[ ]:
0    414
1      4
Name: is_holiday, dtype: int64
In [ ]:
data[data['is_holiday']==1]['Date']
Out[ ]:
0     2016-01-01
68    2016-03-25
95    2016-04-21
105   2016-05-01
Name: Date, dtype: datetime64[ns]

It seems there are only 4 recors where accidents occured on holiday. So we can discard this new feature or add more dates of holidays

In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season is_holiday
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer 1

Lets Visualize the accident level for different features

In [ ]:
#Code to display plotly plot when exporting to HTML

#import plotly
#plotly.offline.init_notebook_mode(connected=True)

#!jupyter nbconvert  --to html capstone_step5_Tarang_Shah.ipynb
In [ ]:
# Calculate counts for each country
counts = data['Country'].value_counts().reset_index()
counts.columns = ['Country', 'Count']

# Create bar plot
fig = px.bar(counts, x='Country', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Country', xaxis_title='Country', yaxis_title='Count')

# Show plot
fig.show()
  • Country 1 has highest accident count, could also meant that it has more industries
In [ ]:
# Calculate counts for each combination of Country and Accident Level
counts = data.groupby(['Country', 'Accident Level']).size().reset_index(name='Count')

# Create bar plot
fig = px.bar(counts, x='Country', y='Count', color='Accident Level',
             text='Count')

# Update layout
fig.update_layout(title='Accident per Country', xaxis_title='Country', yaxis_title='Count')

# Show plot
fig.show()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-8711088eeef0> in <cell line: 2>()
      1 # Calculate counts for each combination of Country and Accident Level
----> 2 counts = data.groupby(['Country', 'Accident Level']).size().reset_index(name='Count')
      3 
      4 # Create bar plot
      5 fig = px.bar(counts, x='Country', y='Count', color='Accident Level',

NameError: name 'data' is not defined
  • Most of Accidents are of level I, followed by levle II and level III
In [ ]:
# Calculate counts for each country
counts = data['Local'].value_counts().reset_index()
counts.columns = ['Local', 'Count']

# Create bar plot
fig = px.bar(counts, x='Local', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Local', xaxis_title='Local', yaxis_title='Count')

# Show plot
fig.show()
  • local 3 seems to have high number of accidents where as local 9,11 and 12 seems to have lowest no of accident
In [ ]:
counts = data['Industry Sector'].value_counts().reset_index()
counts.columns = ['Industry Sector', 'Count']

# Create bar plot
fig = px.bar(counts, x='Industry Sector', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Industry Sector', xaxis_title='Industry Sector', yaxis_title='Count')

# Show plot
fig.show()
In [ ]:
counts = data.groupby(['Industry Sector', 'Accident Level']).size().reset_index(name='Count')

# Create bar plot
fig = px.bar(counts, x='Industry Sector', y='Count', color='Accident Level',
             text='Count')

# Update layout
fig.update_layout(title='Accident per Industry Sector', xaxis_title='Industry Sector', yaxis_title='Count')

# Show plot
fig.show()
In [ ]:
counts = data['Accident Level'].value_counts().reset_index()
counts.columns = ['Accident Level', 'Count']

# Create bar plot
fig = px.bar(counts, x='Accident Level', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Accident Level', xaxis_title='Accident Level', yaxis_title='Count')

# Show plot
fig.show()
  • As observer earlier, accident level I is most freqeuntly observed, could mean that more focus/governance is in place to ensure that severe level accident IV and V dont happen but less governance/focus is there for low level accident types.
In [ ]:
counts = data['Gender'].value_counts().reset_index()
counts.columns = ['Gender', 'Count']

# Create bar plot
fig = px.bar(counts, x='Gender', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Gender', xaxis_title='Gender', yaxis_title='Count')

# Show plot
fig.show()
  • It seems males are employeed over task which has more potential to have accident as compared to female
In [ ]:
counts = data['Employee Type'].value_counts().reset_index()
counts.columns = ['Employee Type', 'Count']

# Create bar plot
fig = px.bar(counts, x='Employee Type', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Employee Type', xaxis_title='Employee Type', yaxis_title='Count')

# Show plot
fig.show()
In [ ]:
counts = data.groupby(['Employee Type', 'Accident Level']).size().reset_index(name='Count')

# Create bar plot
fig = px.bar(counts, x='Employee Type', y='Count', color='Accident Level',
             text='Count')

# Update layout
fig.update_layout(title='Accident per Employee Type', xaxis_title='Employee Type', yaxis_title='Count')

# Show plot
fig.show()
  • There seems to be no difference in count of employees and third party involved in accident, except for accident level V. However there aren't much accident of level V to make any conclusion. But it can be seen that only contractual staff are injured in accident level V
In [ ]:
counts = data['Critical Risk'].value_counts().reset_index()
counts.columns = ['Critical Risk', 'Count']

# Create bar plot
fig = px.bar(counts, x='Critical Risk', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Critical Risk', xaxis_title='Critical Risk', yaxis_title='Count')

# Show plot
fig.show()
In [ ]:
# Concatenate 'Year' and 'Month' columns into a single column
data['YearMonth'] = data['Year'].astype(str) + '-' + data['Month'].astype(str)

# Calculate counts for each combination of YearMonth
counts = data['YearMonth'].value_counts().reset_index()
counts.columns = ['YearMonth', 'Count']

# Create bar plot
fig = px.bar(counts, x='YearMonth', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Year-Month', xaxis_title='Year-Month', yaxis_title='Count',
                  xaxis=dict(tickmode='linear', dtick=1))  # Display all Year-Month combinations

# Show plot
fig.show()
  • Data is inadequate to comment on any trend.
  • For both year, it seems February has high number of accidents
  • For 2016, we can say that no of accident in first 6 month seems to be more than last 6 months
In [ ]:
counts = data['Year'].value_counts().reset_index()
counts.columns = ['Year', 'Count']

# Create bar plot
fig = px.bar(counts, x='Year', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Year', xaxis_title='Year', yaxis_title='Count', xaxis=dict(tickmode='linear', dtick=1))

# Show plot
fig.show()
  • No of accident seems to be more in 2016, but note that data for 2016 is of 12 month but for 2017 it is only of first 6 months
In [ ]:
counts = data['Day'].value_counts().reset_index()
counts.columns = ['Day', 'Count']

# Create bar plot
fig = px.bar(counts, x='Day', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Day', xaxis_title='Day', yaxis_title='Count', xaxis=dict(tickmode='linear', dtick=1))

# Show plot
fig.show()
  • It seems that on 4, 8, 11 , 16,22,23 and 24 of month no of accident seems to be high
In [ ]:
counts = data['Weekday'].value_counts().reset_index()
counts.columns = ['Weekday', 'Count']

# Define the desired order of weekdays
weekday_order = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']

# Create bar plot
fig = px.bar(counts, x='Weekday', y='Count', text='Count')

# Update layout and specify category order for weekdays
fig.update_layout(title='Accident per Weekday', xaxis_title='Weekday', yaxis_title='Count',
                  xaxis=dict(categoryorder='array', categoryarray=weekday_order))

# Show plot
fig.show()
  • It seems that no of accident seems to be more on Tuesday and Thursday and relatively low on Sunday and Monday
In [ ]:
counts = data['season'].value_counts().reset_index()
counts.columns = ['season', 'Count']

# Create bar plot
fig = px.bar(counts, x='season', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per season', xaxis_title='season', yaxis_title='Count')

# Show plot
fig.show()
  • seems more no of accidents in summer and autumn, i.e, first half of year

Note: data for 2017 is for only first 6 month

In [ ]:
# Concatenate 'Year' and 'Season' columns into a single column
data['YearSeason'] = data['Year'].astype(str) + '-' + data['season']

# Calculate counts for each combination of YearSeason
counts = data['YearSeason'].value_counts().reset_index()
counts.columns = ['YearSeason', 'Count']

# Sort by Year
counts['Year'] = counts['YearSeason'].str.split('-').str[0].astype(int)
counts = counts.sort_values(by='Year')

# Create bar plot
fig = px.bar(counts, x='YearSeason', y='Count', text='Count')

# Update layout
fig.update_layout(title='Accident per Year-Season', xaxis_title='Year-Season', yaxis_title='Count')

# Show plot
fig.show()
  • Spearating based on year and season, we can conclude that it seems that first 6 month of year seems to be having more accident compared to last 6 month
  • we can see that accident seem to be decreasing from summer to winter and then increasing from winter to summer
In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season is_holiday YearMonth YearSeason
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer 1 2016-1 2016-Summer
In [ ]:
#removing YearMonth and YearSeason

data.drop(columns=['YearMonth','YearSeason'], inplace=True, axis=1)

Step 3: Data preprocessing (NLP Preprocessing techniques)¶

In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season is_holiday
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer 1

Lets check few samples

In [ ]:
import random
import textwrap
In [ ]:
for i in range(0,5):
  j=random.randint(0,data.shape[0])
  print('-'*50)
  print("Accident Level: ",data['Accident Level'][j])
  print('Description:')
  print(textwrap.fill(data['Description'][j], width=120))
--------------------------------------------------
Accident Level:  I
Description:
When the mechanical technician proceeded to perform the maintenance of motor supports of a tipper, he decided to bring a
wooden block, for which he moved to the temporary storage of materials - located at 10 m. of the tipper - in
circumstances in which he sought the cue; the camera of a tire burst suddenly (it was on the right and 2 m. of the
involved); the thunderous sound affected the right ear of the worker. The tire that exploded has 110 psi of pressure
approximately, at the time of the event they were stacked 3 pneumatic, the second was the one that exploded (presented
cut - place where the energy was released). The tire that was in the upper part was not projected. The tires were left
by the previous guard (night shift), the storage area does not have a roof. In the place of the event only the affected
mechanic was located (at 2m.) And at a distance of 70m. there were other workers. In the area 5 trucks were parked, none
of them suffered damage to the glass.
--------------------------------------------------
Accident Level:  I
Description:
Mr. Marcelo withdrew foam from the ajax oven, using the metal spoon to empty it into the foam waste container. At that
moment splash of slag residues, impacting the face and generating a surface burn. The worker was wearing a face mask.
--------------------------------------------------
Accident Level:  I
Description:
The mincing team was carrying out activities in the city of Juína and was coordinated by mining technician Felipe a time
when the mining technician was last in line and more away from the team, was bitten by a blackjack on the left side of
his face. There was no allergic manifestation and the team continued the work. In the afternoon, after lunch, the
employee sought medical care, was medicated and released to continue activities the next day.
--------------------------------------------------
Accident Level:  I
Description:
After parking a van next to a cluster of wooden sleepers and boards, the driver, on descending, stepped on a board in
which an iron nail protruded 11/2 "long, which he did not identify as the board was submerged in a puddle of water. This
accident caused a minor wound on the sole of the left foot. At the time of the accident the worker was wearing safety
boots.
--------------------------------------------------
Accident Level:  I
Description:
Being 2:40 am. Approximately, Luna - master loader of the company Incimet was carrying out the loading activity of the
front in the Cruiser 771 of the 1970 level; in moments that was tying the pentacord of the crown and trying to reach the
fanel on the left side, loses balance by a movement of the ladder and falls to the floor resulting in the accident.
  • It seems there are accented character
In [ ]:
word_length=data['Description'].apply(lambda x: len(x.split()))

print('Maximum words in description :', max(word_length))
print('Minimum words in description :', min(word_length))
print('Average words in description :', np.mean(word_length))
Maximum words in description : 183
Minimum words in description : 16
Average words in description : 65.06459330143541
In [ ]:
sentence_length=data['Description'].str.len()
print('Maximum sentence length in description :', max(sentence_length))
print('Minimum sentence length in description :', min(sentence_length))
print('Average sentence length in description :', np.mean(sentence_length))
Maximum sentence length in description : 1029
Minimum sentence length in description : 94
Average sentence length in description : 365.4138755980861
In [ ]:
data['Description'].str.len()
Out[ ]:
0      457
1      307
2      314
3      562
4      487
      ... 
413    220
414    219
415    251
416    187
417    208
Name: Description, Length: 418, dtype: int64

Performing following preprocessing steps

  • removing accented characters
  • converting to lower case (can be covered during tokenization part)
  • removing punctuations
  • removing HTML characters
  • removing numbers as well

Please note- Deliberately not removing stop words and lemmatizing as we want to preserve the sequence for LSTM. Not doing spell check as we are working on a domain specifc data and there maybe jargon/specifc terms that might get affected using spell check

In [ ]:
#taking backup of dataframe
data1=data.copy()
In [ ]:
clean_description=[]

for i in range(0, data.shape[0]):

  #removing HTMl characters
  soup = BeautifulSoup(data['Description'][i], "html.parser")
  desc = soup.get_text()

  #removing anything besides a-zA-Z and single space
  desc=  re.sub('[^a-zA-Z\s]', '', desc)

  #lowering the text
  desc=desc.lower()

  #removing accented characters
  desc= ' '.join(unidecode.unidecode(word) for word in desc.split())

  #removing extra new lines
  desc = re.sub('[\r|\n|\r\n]+', ' ',desc)

  # remove extra whitespace
  desc = re.sub(' +', ' ', desc)

  clean_description.append(desc)
In [ ]:
len(clean_description)
Out[ ]:
418
In [ ]:
data['clean_description']=clean_description
In [ ]:
data.head(1)
Out[ ]:
Date Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Description Year Month Day Weekday WeekofYear season is_holiday clean_description
0 2016-01-01 Country_01 Local_01 Mining I IV Male Third Party Pressed While removing the drill rod of the Jumbo 08 f... 2016 1 1 Friday 53 Summer 1 while removing the drill rod of the jumbo for ...
In [ ]:
#lets check 5 random samples again

for i in range(0,5):
  j=random.randint(0,data.shape[0])
  print('-'*50)
  print("Accident Level: ",data['Accident Level'][j])
  print('Description:')
  print(textwrap.fill(data['clean_description'][j], width=120))
--------------------------------------------------
Accident Level:  I
Description:
during the execution of the soil sampling task in the potions area around pm pablo was moving on the bite and was bitten
by a right elbow wasp over the sleeve uniform he was using at the time of the incident all the ppe needed for the
activity the employee was evaluated by the team who found it to be a mild injury with localized swelling the employee
reported that he did not feel any pain and that he could continue the activity
--------------------------------------------------
Accident Level:  I
Description:
at level access a the operator of the scissor performed the support of the crown at which time a piece of rock cmxcmxcm
g passes between the cocada of the support mesh from a height of meters towards the platform of the team breaking into
particles one of which reaches his right eye causing the injury
--------------------------------------------------
Accident Level:  I
Description:
being approximately h when supervising the line clamping of the pom d roy canario returning to the thickener d hits his
nose with the metal chute out of operation
--------------------------------------------------
Accident Level:  I
Description:
when the plant operator was semikneeling when lifting the lid or gate kg of the distributor box of the secondary mill no
and no his right knee slips due to the presence of debris spilled on the platform or floor grating which gave him an
extra effort in his left leg generating a muscle contracture
--------------------------------------------------
Accident Level:  I
Description:
the employee was sanding a piece in the electrolysis at the end of the operation when the protective cap of the disk
spun to the back of the left hand
In [ ]:
#Lets check word and sentences length again after cleaning

word_length=data['clean_description'].apply(lambda x: len(x.split()))

print('Maximum words in description :', max(word_length))
print('Minimum words in description :', min(word_length))
print('Average words in description :', np.mean(word_length))


sentence_length=data['clean_description'].str.len()
print('Maximum sentence length in description :', max(sentence_length))
print('Minimum sentence length in description :', min(sentence_length))
print('Average sentence length in description :', np.mean(sentence_length))
Maximum words in description : 180
Minimum words in description : 16
Average words in description : 63.23205741626794
Maximum sentence length in description : 998
Minimum sentence length in description : 92
Average sentence length in description : 350.39234449760767

There isn't much diffrence in word and sentence length after cleaning

In [ ]:
#lets check word cloud for different accident levels
plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data['clean_description']))
    )
plt.title('Word-Map for Clean Description')
plt.axis('off')
plt.show()


plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data[data['Accident Level'] == 'I']['clean_description']))
    )
plt.title('Word-Map for Accident Level I')
plt.axis('off')
plt.show()

plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data[data['Accident Level'] == 'II']['clean_description']))
    )
plt.title('Word-Map for Accident Level II')
plt.axis('off')
plt.show()

plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data[data['Accident Level'] == 'III']['clean_description']))
    )
plt.title('Word-Map for Accident Level III')
plt.axis('off')
plt.show()

plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data[data['Accident Level'] == 'IV']['clean_description']))
    )
plt.title('Word-Map for Accident Level IV')
plt.axis('off')
plt.show()

plt.imshow(
    WordCloud(max_words = 70,
              stopwords=STOPWORDS,
              width=1500,
              height=800,
              background_color = 'white',
              colormap='plasma',
               min_font_size=10,
              ).generate(" ".join(data[data['Accident Level'] == 'V']['clean_description']))
    )
plt.title('Word-Map for Accident Level V')
plt.axis('off')
plt.show()
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
  • Wordmap of all accidents and that of level 1 accident seems similar since there are high number of level I accident
  • Most common words across all accident description seems to be : operator, employee, left hand, floor, causing, injury, worker, drill, rod
In [ ]:
#removing date field as we have extracted month, year and day

data.drop(columns='Date', axis=1, inplace=True)
In [ ]:
#removing description field as we have clean_description

data.drop(columns='Description', axis=1, inplace=True)
In [ ]:
data.head(1)
Out[ ]:
Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description
0 Country_01 Local_01 Mining I IV Male Third Party Pressed 2016 1 1 Friday 53 Summer 1 while removing the drill rod of the jumbo for ...

Step 4: Data preparation - Cleansed data in .xlsx or .csv file¶

In [ ]:
data.shape
Out[ ]:
(418, 16)
In [ ]:
#lets save the clean data

data.to_csv('cleaned_IHMStefanini_industrial_safety_and_health_database_with_accidents_description.csv',
            index=False)

Step 5: Design train and test basic machine learning classifiers¶

In [ ]:
#lets read the clean data from CSV
cleaned_data=pd.read_csv('cleaned_IHMStefanini_industrial_safety_and_health_database_with_accidents_description.csv')
In [ ]:
#lets validate shape
cleaned_data.shape
Out[ ]:
(418, 16)
In [ ]:
cleaned_data.head(1)
Out[ ]:
Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description
0 Country_01 Local_01 Mining I IV Male Third Party Pressed 2016 1 1 Friday 53 Summer 1 while removing the drill rod of the jumbo for ...

We need to convert categorical data to numerical data for using in model

In [ ]:
#converting Accident Level and Potential Accident Level to Labels
basic_model_data=pd.DataFrame()

label_encoder=LabelEncoder()

basic_model_data['Accident Level']=label_encoder.fit_transform(cleaned_data['Accident Level'])
basic_model_data['Potential Accident Level']=label_encoder.fit_transform(cleaned_data['Potential Accident Level'])
In [ ]:
cleaned_data.columns
Out[ ]:
Index(['Country', 'Local', 'Industry Sector', 'Accident Level',
       'Potential Accident Level', 'Gender', 'Employee Type', 'Critical Risk',
       'Year', 'Month', 'Day', 'Weekday', 'WeekofYear', 'season', 'is_holiday',
       'clean_description'],
      dtype='object')
In [ ]:
#creating dummy variables for rest of category
dummy_cols= pd.get_dummies(cleaned_data[['Country','Local','Industry Sector', 'Gender', 'Employee Type', 'Critical Risk'
,'Weekday','season']], drop_first=True)

dummy_cols.shape
Out[ ]:
(418, 59)
In [ ]:
dummy_cols.head(1)
Out[ ]:
Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
In [ ]:
basic_model_data=pd.concat([basic_model_data, cleaned_data[['Year', 'Month', 'Day','WeekofYear', 'is_holiday']], dummy_cols ], axis=1)
In [ ]:
basic_model_data.shape
Out[ ]:
(418, 66)

Download Glove model

In [ ]:
!wget https://downloads.cs.stanford.edu/nlp/data/glove.6B.zip
--2024-03-03 06:51:41--  https://downloads.cs.stanford.edu/nlp/data/glove.6B.zip
Resolving downloads.cs.stanford.edu (downloads.cs.stanford.edu)... 171.64.64.22
Connecting to downloads.cs.stanford.edu (downloads.cs.stanford.edu)|171.64.64.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 862182613 (822M) [application/zip]
Saving to: ‘glove.6B.zip.2’

glove.6B.zip.2      100%[===================>] 822.24M  5.02MB/s    in 2m 39s  

2024-03-03 06:54:20 (5.18 MB/s) - ‘glove.6B.zip.2’ saved [862182613/862182613]

In [ ]:
!unzip -o glove.6B.zip
Archive:  glove.6B.zip
  inflating: glove.6B.50d.txt        
  inflating: glove.6B.100d.txt       
  inflating: glove.6B.200d.txt       
  inflating: glove.6B.300d.txt       
In [ ]:
embeddings_index = {}
EMBEDDING_FILE = 'glove.6B.200d.txt'
f = open(EMBEDDING_FILE)
for line in f:
    values = line.split()
    word = values[0]
    coefs = np.asarray(values[1:], dtype='float32')
    embeddings_index[word] = coefs
f.close()

print('Found %s word vectors.' % len(embeddings_index))
Found 400000 word vectors.
In [ ]:
# Function to create a normalized vector for whole sentence
def sent2vec(s):
    words = word_tokenize(s)
    N = []
    for w in words:
        try:
            N.append(embeddings_index[w])
        except:
            continue
    N = np.array(N)
    v = N.sum(axis=0)
    if type(v) != np.ndarray:
        return np.zeros(200)
    return v
In [ ]:
# Create sentence vectors using the above function for training and validation set
description_glove = [sent2vec(x) for x in cleaned_data['clean_description']]
In [ ]:
len(description_glove)
Out[ ]:
418
In [ ]:
basic_model_data=pd.concat([basic_model_data, pd.DataFrame(description_glove)], axis=1)
In [ ]:
basic_model_data.columns = basic_model_data.columns.astype(str)
In [ ]:
basic_model_data.head(1)
Out[ ]:
Accident Level Potential Accident Level Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 0 3 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2.67 19.93 -0.02 -11.31 4.04 18.14 -20.14 -6.10 -8.21 4.63 3.11 15.66 10.79 6.70 26.09 -4.53 1.19 9.09 -2.72 -3.46 12.15 190.84 9.77 -0.78 7.47 6.58 -11.65 6.54 -0.95 0.20 7.98 -12.03 -0.97 0.98 -2.10 -9.37 -41.08 -20.13 -11.45 -5.36 7.23 -10.80 4.97 21.31 -2.24 20.89 18.45 8.54 8.90 25.43 -3.23 1.49 1.05 12.76 7.87 -1.14 -4.37 1.10 -7.29 1.75 8.16 -5.17 -25.68 -5.67 11.25 3.77 -7.76 5.77 1.05 -3.76 25.22 1.71 12.38 11.06 -8.73 29.33 -4.13 -1.59 -0.69 -6.89 2.70 -10.90 -14.63 6.54 6.32 -1.95 -12.52 -19.81 43.11 -42.60 6.03 4.27 21.24 3.14 -11.58 2.93 13.89 -4.29 -1.77 -8.97 -3.26 0.65 -0.18 6.51 -6.15 -10.93 4.11 71.02 -10.99 -4.04 -5.59 -11.30 2.55 12.96 6.92 -1.62 1.80 -7.94 -12.47 -4.87 14.83 4.63 3.98 14.47 3.33 -29.71 19.52 9.04 -1.27 0.75 -13.11 19.56 14.75 -23.56 -3.28 15.42 2.83 -12.38 -8.16 -8.13 -1.44 8.98 9.91 -4.95 80.26 7.33 -9.03 -14.68 1.33 7.16 5.42 14.30 1.88 -12.86 14.71 5.82 -14.77 20.58 -6.51 -35.25 9.24 -6.12 -12.51 1.72 -2.21 7.77 -14.43 -3.10 -20.84 37.39 6.31 7.50 14.83 -10.61 2.97 0.99 -8.24 -26.16 -0.57 0.48 66.47 -17.27 -3.35 2.47 -5.73 -11.07 -8.87 4.73 6.53 23.39 -4.08 10.43 -12.26 15.43 -1.27 1.52 -0.27 5.65 -9.59 16.00
In [ ]:
basic_model_data.shape
Out[ ]:
(418, 266)
In [ ]:
X=basic_model_data.drop(columns=['Accident Level','Potential Accident Level'])
y=basic_model_data[['Accident Level']]
In [ ]:
X.shape, y.shape
Out[ ]:
((418, 264), (418, 1))
In [ ]:
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.20, random_state = 42, stratify = y)
In [ ]:
X_train.shape, y_train.shape
Out[ ]:
((334, 264), (334, 1))
In [ ]:
X_test.shape, y_test.shape
Out[ ]:
((84, 264), (84, 1))
In [ ]:
y_train.value_counts()
Out[ ]:
Accident Level
0                 247
1                  32
2                  25
3                  24
4                   6
dtype: int64
In [ ]:
y_train.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.74
1                0.10
2                0.07
3                0.07
4                0.02
dtype: float64
In [ ]:
y_test.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.74
1                0.10
2                0.07
3                0.07
4                0.02
dtype: float64

Normalizing the data

In [ ]:
ss = StandardScaler()

X_train_std= ss.fit_transform(X_train)

X_test_std = ss.transform(X_test)
In [ ]:
X_train_std=pd.DataFrame(X_train_std, columns= X_train.columns)
X_test_std=pd.DataFrame(X_test_std, columns= X_test.columns)
In [ ]:
X_train_std
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.68 0.23 -0.61 0.14 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 2.50 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 -1.14 -0.36 0.24 -0.92 2.53 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 4.78 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 -0.35 -1.12 -1.72 0.11 0.48 -0.22 -0.83 0.69 0.29 1.05 0.23 -0.43 -0.35 -0.57 -0.69 -0.77 -0.51 0.11 -0.43 0.20 0.69 -0.14 -0.81 -0.16 0.79 -0.84 1.54 0.75 -1.11 0.01 -1.04 -1.10 1.56 -0.41 0.43 0.08 0.76 0.64 0.52 -0.67 0.79 0.05 0.91 -0.90 -0.52 0.37 -1.11 -1.09 -0.16 -0.70 -1.00 1.12 0.40 -0.48 -0.79 0.03 -0.09 0.42 -0.88 1.26 0.56 -0.65 0.88 0.63 0.42 -0.60 -0.94 0.81 -0.72 0.63 0.21 -1.27 -0.66 -0.92 -0.36 0.42 -0.93 0.47 0.50 0.24 0.88 0.03 0.61 0.82 -0.88 -0.20 0.32 0.76 0.60 -1.05 0.69 -0.48 -0.46 -1.01 0.73 0.08 -0.71 -1.25 0.19 0.05 1.81 -0.68 -0.68 -1.43 -0.13 0.26 0.28 0.18 -0.89 0.58 -0.14 0.10 0.37 -1.21 -1.39 -0.74 0.54 -1.36 0.46 0.90 -0.03 -0.57 -0.24 -0.57 -0.36 -0.10 0.89 -0.76 -0.90 0.49 0.37 1.03 -0.69 -0.50 0.79 0.52 -0.13 -0.05 0.90 -0.02 0.02 0.52 -0.78 -0.88 -0.13 -0.63 -0.27 1.48 0.48 0.48 -0.38 -0.29 -0.63 0.32 0.62 -1.10 -0.98 0.98 -0.57 0.72 0.86 -0.39 1.05 1.20 -1.00 1.05 -0.90 0.83 -0.13 0.68 -0.75 0.01 -1.35 -0.42 0.88 0.04 1.34 0.50 1.11 0.72 -0.78 -0.87 0.74 0.71 0.43 0.08 0.47 0.42 -0.65 -0.15 -0.88 1.37 -0.26 0.63 -0.68 0.04 -0.55 -0.38 -0.65 0.18 -0.49
1 -0.68 0.85 -1.65 0.72 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 -1.71 -0.86 -0.20 0.64 0.64 0.19 -0.05 -0.68 -0.40 -0.05 0.08 -0.71 -0.20 -0.40 -0.03 1.11 -0.82 0.01 0.24 0.65 -0.94 -0.43 -0.38 -0.15 1.50 -1.61 0.04 0.05 -1.31 -0.39 0.25 0.18 1.12 0.75 0.51 0.51 0.63 0.01 0.85 0.40 -0.99 0.21 0.47 0.02 1.21 -0.49 -0.85 -0.91 -0.66 -0.27 0.89 -1.35 -1.14 -0.37 -0.41 0.55 -0.84 0.69 -1.59 -0.38 -0.21 0.89 0.85 1.23 -0.46 0.94 0.35 -1.94 -1.57 -1.56 -0.13 0.85 -0.36 -0.65 -1.10 0.15 1.20 0.25 -0.65 -0.82 -1.22 0.04 0.29 0.06 0.39 -0.24 1.34 0.61 -0.07 -0.09 0.04 -0.45 -0.33 1.28 0.30 0.73 0.09 -1.05 0.44 -0.77 0.38 0.77 0.16 -0.43 0.46 0.06 0.41 -0.57 0.08 1.24 0.87 1.25 -0.01 -0.87 0.28 -1.11 0.19 -0.25 -0.39 -0.68 -0.49 0.10 -1.05 -0.69 -0.27 0.45 1.39 0.31 -0.59 0.44 -0.20 0.04 -0.82 0.38 0.41 -1.16 0.87 1.48 0.23 0.05 0.68 -0.64 -0.08 -0.26 -0.50 -1.26 1.25 -0.08 0.87 -1.15 -1.21 -0.33 1.22 1.27 -0.75 0.55 -0.13 -0.06 0.95 0.36 0.49 -0.06 0.56 -0.23 -1.58 -0.73 0.85 1.38 0.44 -0.79 -1.19 0.62 -0.71 1.18 -1.21 -0.71 1.01 0.52 -0.43 0.94 -0.43 0.16 -0.42 0.37 0.93 0.34 -0.60 -0.69 -0.90 -0.15 -0.87 -0.49 -0.12 -0.18 0.93 -1.74 0.63 0.57 0.24 -0.28
2 -0.68 0.85 -1.54 0.72 -0.10 -0.66 3.02 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 3.02 -0.05 -0.11 -1.14 2.79 0.24 1.08 -0.39 6.38 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 -0.39 -0.84 2.83 -1.41 0.76 -0.89 -1.15 -0.21 0.16 -0.12 1.00 1.65 1.48 2.29 0.74 0.73 -0.90 0.56 1.33 0.50 0.66 1.33 0.34 1.50 0.64 0.31 0.54 1.10 0.23 -0.67 -0.01 1.73 0.16 -0.46 -0.25 -0.58 -1.03 -0.70 -1.67 -0.55 -0.16 0.02 1.41 1.68 -1.43 -1.01 0.22 0.29 -0.31 0.16 0.03 0.66 -0.47 -1.99 1.90 -0.02 0.78 -1.18 -1.77 -0.11 -1.38 -1.17 0.60 1.69 -0.49 -0.51 1.03 -0.58 -0.35 -0.29 0.87 -0.58 1.00 0.26 -1.39 0.69 0.98 0.48 0.36 -0.89 -0.61 1.55 -0.97 1.95 -0.75 -0.94 -0.41 -0.12 1.46 -1.15 -0.58 0.07 -0.12 -0.60 0.09 0.68 0.41 -1.60 -0.50 -1.37 -0.92 1.31 0.78 1.26 -2.13 -0.73 0.24 -0.98 -0.20 1.26 0.67 -0.77 -0.64 1.41 -1.33 -0.03 -0.11 0.17 0.46 -1.14 0.91 -0.81 -2.54 -0.48 -0.58 1.83 0.01 0.84 -0.66 0.20 -0.09 0.91 -1.99 0.50 -1.58 0.16 -0.63 1.94 1.51 -1.11 0.70 -1.33 1.19 0.55 -0.30 -0.37 0.13 0.59 1.56 -0.47 -1.49 0.72 0.77 -1.25 0.45 -1.02 -0.59 -0.16 0.29 -0.52 -0.34 -1.08 -0.17 -0.59 1.22 1.75 1.81 -0.09 1.80 -0.48 0.33 -0.53 0.38 -0.19 -0.11 0.50 -0.28 2.05 0.67 -2.82 0.06 0.47 1.57 0.61 0.81 -0.75 -0.57 -2.02 0.05 -0.30 -0.15 0.33 0.64 -0.97 0.36 -0.95 -0.24 1.69 2.48 -1.20 -1.38 0.82 -0.16
3 -0.68 1.79 1.46 1.93 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 2.53 -0.84 -0.35 0.08 0.16 -0.44 0.50 0.15 -0.46 0.54 -0.54 -0.35 -0.89 -0.75 -0.46 -0.32 -0.51 -0.78 1.06 0.01 -0.28 0.28 0.49 -1.10 -0.44 0.75 -0.03 -0.58 -0.00 -0.40 -0.43 -0.20 0.01 1.00 0.95 0.09 -0.43 -0.15 1.24 0.60 0.44 1.19 -0.09 0.02 0.06 1.20 -0.64 -0.68 0.18 0.07 -0.63 0.91 -0.54 0.63 -1.14 -0.30 -0.18 0.67 0.75 -0.14 0.59 0.84 -1.33 -0.03 1.92 0.12 -0.28 -0.89 1.26 0.37 -0.16 0.91 1.15 0.14 0.51 -0.97 -0.32 0.78 -1.07 0.82 -0.43 0.91 0.96 -2.15 0.07 0.62 0.38 0.09 -0.83 1.27 0.41 -0.24 0.46 0.19 -0.07 0.23 -0.06 1.90 -0.05 1.17 1.11 -2.29 1.08 0.52 -0.52 -0.14 -0.91 1.04 1.13 0.26 -0.53 0.08 -0.67 -0.93 0.57 0.14 0.59 -0.60 -1.60 2.16 1.15 -0.14 0.50 0.23 0.03 -1.36 -1.22 -0.77 0.38 -0.01 0.03 -0.43 0.59 1.22 -1.10 -0.89 0.51 -0.52 -0.56 0.07 -0.62 0.42 -0.65 -0.36 -1.08 0.21 0.23 -0.61 0.20 0.13 0.85 -0.57 -1.01 -0.20 -0.11 0.61 -0.43 -0.56 0.46 -0.10 -0.84 0.06 0.72 -0.81 0.05 0.71 -0.09 -0.33 0.12 -0.16 -0.89 0.32 -0.45 0.94 -1.24 0.05 0.07 -1.11 0.01 0.43 1.02 -0.18 2.00 -0.53 -0.02 0.87 -0.57 0.48 -0.28 0.13 0.65 -0.67 -0.50 -0.72 0.24 1.05 -0.22 0.39 0.07 0.29 -0.49 0.11 -1.08
4 -0.68 -0.09 1.11 0.00 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 -0.39 -0.84 -0.35 -0.32 -1.30 0.13 0.15 -0.45 -0.79 1.00 -0.07 -0.54 -1.43 -0.42 -0.85 -1.40 0.03 -0.72 0.95 0.74 -0.84 1.13 0.66 -0.92 -0.79 -0.99 -0.30 0.07 -0.26 0.29 -0.45 -0.57 -0.51 -0.64 1.31 0.16 0.09 0.64 0.64 0.83 0.49 0.60 0.11 -0.19 0.31 0.14 -1.32 0.24 -0.05 -0.80 -0.82 -0.18 -1.11 -1.08 -0.74 0.68 -0.33 -0.24 0.33 -0.34 -0.64 -0.25 0.09 -1.05 1.33 1.06 0.24 -0.87 -0.93 1.01 -0.10 0.17 -0.25 -0.94 -0.78 -0.88 -0.41 0.22 -0.35 0.81 0.68 0.75 -0.01 -0.26 0.54 0.76 0.04 -0.81 -0.61 0.26 1.01 -0.67 0.98 -0.33 -1.31 -0.71 0.50 0.55 -0.88 -0.44 0.58 -0.61 0.12 0.48 0.81 0.87 0.78 0.27 0.77 -0.28 -0.96 0.56 0.60 -0.04 0.60 -0.12 -0.55 -0.96 0.52 -1.12 0.84 0.10 0.47 -0.94 -0.08 0.02 -0.77 0.35 0.53 -0.65 -0.63 0.18 0.11 1.31 -1.05 -0.59 1.06 0.16 -1.00 0.01 1.43 0.33 0.32 -0.02 -1.18 -0.64 1.08 -0.78 -0.74 0.03 0.43 -0.09 0.30 -0.14 -0.88 0.74 0.65 -0.61 0.02 1.26 -1.12 0.66 0.28 0.44 0.08 0.02 1.13 1.19 0.02 0.14 -0.25 1.10 -0.50 0.50 -0.71 -0.58 0.71 -1.09 -0.46 1.25 0.67 -0.89 -0.07 -0.75 0.35 -0.11 0.08 1.11 0.58 0.71 0.13 -0.48 -0.91 -0.52 -0.26 0.70 -1.05 -0.34 0.11 -0.27 -1.12 0.16 -0.61
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
329 -0.68 0.54 -0.61 0.43 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 2.97 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 1.86 0.38 0.27 -0.11 2.66 1.77 -0.97 -1.76 -2.97 -1.19 0.91 0.09 1.37 0.02 0.33 0.88 -1.14 -0.11 1.83 -0.67 -0.80 0.71 -0.09 -1.33 0.93 -1.88 -0.77 -0.33 -1.52 -0.33 1.44 -0.72 0.53 0.05 2.21 -0.98 -0.38 -1.51 1.47 -0.84 1.21 0.28 1.60 0.66 -0.78 0.78 0.81 -0.17 -0.71 1.51 0.51 0.50 -1.08 0.23 1.33 0.63 -0.15 1.15 -1.52 1.27 -2.27 -0.18 0.02 -1.10 0.35 1.60 -0.65 0.29 1.85 0.25 1.40 0.55 0.64 0.17 -1.83 0.64 -1.06 -1.19 -1.87 0.82 -1.50 -0.77 -0.66 0.55 1.57 -1.04 0.32 -0.61 0.74 -1.05 0.65 1.74 0.60 0.12 0.82 2.01 1.20 -0.61 -2.17 0.55 1.15 -0.51 1.04 -0.14 0.15 -0.39 0.94 0.62 -1.15 0.24 -1.37 -0.33 2.22 0.46 -0.03 -2.03 2.62 0.16 -0.47 0.92 1.34 1.23 -1.20 -0.25 -0.32 -0.42 1.44 1.08 -1.24 0.71 -1.31 1.23 0.33 -1.18 -0.57 0.42 1.40 -0.53 0.33 -1.52 0.59 0.83 1.75 -1.43 0.63 0.63 0.36 -0.10 0.16 -1.24 1.27 1.13 0.73 -0.20 0.29 -2.21 -1.21 0.49 -0.42 -0.67 -0.41 -1.87 0.79 1.29 -2.88 0.39 0.55 0.79 -0.89 0.20 0.98 1.08 0.56 0.65 -0.68 -0.18 1.19 -1.15 0.83 0.47 0.85 -1.79 0.03 0.58 -0.19 -0.50 -1.87 0.46 -1.11 1.16 -0.44 -0.47 -0.10 1.23 -0.35 -1.56 0.48 1.45 -1.94 -0.56
330 -0.68 -1.02 -0.73 -1.07 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 -0.39 1.19 -0.35 -1.03 2.02 0.04 0.81 1.91 0.45 0.35 -0.41 -1.15 -0.18 0.44 -0.55 2.60 -0.69 -0.19 -0.21 0.10 -1.39 0.27 0.17 -0.63 0.13 0.51 -0.52 0.32 1.61 0.28 -0.21 -0.14 -0.21 1.69 0.17 1.88 -0.77 -1.68 0.18 -0.06 -0.03 0.81 0.29 1.67 0.19 1.58 -0.80 -1.41 0.18 0.12 -0.58 0.40 0.45 -0.13 2.43 -1.34 -0.26 1.31 -1.82 -0.59 1.54 -0.01 1.20 0.04 -0.54 -0.07 -0.51 0.02 -1.25 -0.77 0.57 2.41 0.46 0.95 0.70 1.27 -0.99 -0.71 0.25 0.72 0.04 1.27 0.11 0.52 0.08 0.18 -0.89 -0.54 -0.29 0.09 0.12 0.29 -0.14 0.51 0.23 -0.10 0.96 1.30 0.65 1.87 0.37 0.13 -0.51 0.08 -1.60 0.03 -0.31 0.77 -0.42 1.38 0.08 1.20 -0.92 -1.28 -0.65 0.37 0.99 0.19 0.59 1.42 -0.27 -0.64 0.73 -0.50 -1.08 -0.42 0.19 0.51 0.16 -0.17 0.65 1.26 0.96 0.31 0.22 0.03 -0.23 -0.19 -0.00 -1.72 0.08 1.12 1.31 0.00 -0.26 0.32 0.97 -0.05 0.41 -0.54 0.80 -0.73 0.90 0.66 0.01 -0.26 -1.24 -0.11 -0.07 -0.88 -0.26 0.72 -1.03 0.05 -0.57 -0.64 0.35 -1.71 1.11 -0.41 -0.86 -0.16 0.22 0.64 0.15 -0.47 0.10 -0.80 0.73 -0.78 -0.98 -0.13 0.41 0.11 -0.41 0.56 2.16 0.28 -0.74 -0.65 0.05 -0.36 -0.48 -1.26 0.25 -0.91 0.91 1.08 1.18 0.11 -0.17 -0.27 1.05
331 -0.68 -0.71 0.08 -0.71 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 -0.39 1.19 -0.35 -1.63 -1.03 0.62 1.36 -0.45 -0.55 0.77 0.72 0.09 0.66 -1.08 -1.04 -1.38 0.40 -0.94 -2.00 0.95 -1.22 -1.41 1.14 -0.70 -0.99 -0.42 0.75 -1.10 -0.93 1.11 -0.88 0.20 -0.57 -0.86 0.47 0.95 0.72 0.81 0.52 0.97 1.01 -0.79 0.65 -0.01 -0.03 -0.42 -0.85 1.19 -0.31 -1.21 -0.43 1.05 -0.86 0.68 -0.73 1.30 -1.00 -0.80 0.76 0.76 -0.20 1.69 -0.20 -0.16 0.50 0.42 -0.81 -0.11 -0.93 -0.00 -0.68 -0.41 0.06 -1.14 0.63 -0.62 -0.72 -0.60 -0.64 0.10 1.18 1.28 0.92 -0.37 0.68 1.08 -0.86 -1.49 -0.11 0.80 0.78 -1.01 1.03 -1.40 -0.64 -0.71 -0.47 0.75 -0.42 -0.40 0.51 1.56 1.26 0.86 0.61 0.82 -0.99 0.44 1.14 -1.08 -0.91 1.52 0.45 -0.15 1.28 -0.55 -1.14 -0.47 0.47 -0.31 0.29 -0.10 1.07 -0.45 -0.49 -0.25 0.01 -1.05 1.03 -1.15 -0.58 -0.22 1.80 0.45 -0.14 -0.56 0.86 0.32 -0.41 -0.89 0.04 0.30 0.39 -0.13 -1.24 -1.41 0.15 -1.00 -0.86 0.42 0.89 -0.99 0.27 -0.51 -0.28 -0.33 0.34 -0.75 1.87 0.13 -0.46 0.64 0.94 -0.24 1.51 -0.65 -0.56 1.03 -0.14 0.89 -0.06 1.04 -0.98 -1.00 0.55 -0.76 0.24 -0.79 0.77 -0.05 0.74 -0.78 -0.09 -1.07 0.84 0.89 0.34 -0.54 0.33 1.00 0.16 0.45 -0.94 1.13 -1.91 0.91 -0.26 -0.78 -0.50 -0.22 -1.12 0.93 -0.73
332 -0.68 2.11 -0.61 2.00 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 2.50 -0.34 -0.46 -0.45 -0.42 -0.39 1.19 -0.35 -0.42 -0.14 -0.45 0.04 -0.25 -0.68 0.08 0.04 0.36 -0.04 0.57 0.04 2.08 0.38 -0.44 -1.22 1.16 -0.22 0.54 -1.58 0.58 0.09 -0.48 -0.32 0.11 0.38 -0.85 0.43 0.73 -1.16 -1.12 0.85 0.68 -2.57 1.89 -0.18 0.09 -0.21 -0.57 1.06 -1.61 0.46 -1.74 0.26 0.45 -0.36 -0.15 1.38 0.62 0.47 0.51 -0.13 1.09 0.35 1.00 -1.09 0.64 -1.04 1.76 0.53 0.77 -3.03 -0.30 -1.73 0.43 -0.85 -0.62 0.12 -0.49 1.47 -0.07 0.22 -0.27 -0.12 -0.49 -0.78 -0.99 -0.90 -1.44 0.62 0.56 -0.45 0.08 -1.54 1.26 -0.99 -0.44 -0.33 -0.04 0.13 0.60 -0.13 -1.06 1.39 -0.14 -0.65 -0.01 -0.90 0.54 -0.66 -0.54 1.19 -0.83 0.81 -0.40 -1.28 -0.67 0.20 -0.06 -1.84 -0.01 -0.45 -1.74 -1.66 -0.39 0.34 -0.07 0.78 0.54 -0.83 0.16 -0.65 0.08 0.30 0.51 0.23 -0.23 -0.46 0.27 0.29 0.08 -0.30 0.14 -0.15 -0.15 0.20 -1.39 -0.14 0.37 -0.41 0.98 1.84 -0.16 0.28 0.33 0.11 0.24 0.17 -1.00 0.71 1.21 -0.08 -1.51 0.60 -0.26 -0.45 -0.42 0.01 1.23 -0.33 -0.02 -0.67 -1.18 -2.50 0.53 -1.06 0.72 0.30 0.06 0.43 0.45 -0.65 0.98 0.65 0.14 1.60 -1.06 -0.22 1.60 0.82 -0.08 0.70 -0.12 0.11 0.11 -0.36 -1.40 -0.59 0.22 -0.67 -0.07 -0.88 -0.33 0.06 0.61 -0.32 1.05 0.47 -0.22 0.90
333 -0.68 0.85 -0.04 0.86 -0.10 -0.66 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 0.11 1.42 -0.40 -0.66 0.85 1.44 -0.81 -0.41 0.41 0.75 0.97 1.20 -1.10 1.17 1.50 -1.40 0.26 1.77 -2.03 -0.54 1.64 1.29 1.00 -0.63 0.46 2.45 -0.65 1.69 0.67 -0.23 1.86 -1.75 -0.26 -1.92 -1.63 -0.94 -1.69 -1.14 -0.88 -2.15 -0.04 -1.50 1.81 1.89 -1.52 1.71 1.43 0.36 0.51 1.20 -1.48 -0.40 -1.67 1.79 0.73 0.20 1.76 0.53 -1.28 -1.36 1.35 0.22 -2.25 -0.55 1.66 0.35 0.40 1.17 -0.21 0.03 1.83 0.21 1.47 1.14 -0.19 1.41 -2.26 -0.74 -0.37 -1.10 -0.26 -1.05 -0.77 0.39 1.58 2.20 -1.56 -0.76 1.30 -1.29 0.79 0.06 1.32 0.27 -0.99 -0.78 0.32 -0.54 0.31 -1.00 -0.73 -1.01 -1.86 1.23 -1.82 -0.87 0.64 1.45 -2.07 -0.61 -1.09 -1.67 0.87 0.47 0.60 0.27 0.23 -1.52 -1.06 -1.10 0.77 0.56 1.77 1.45 0.12 -1.32 1.04 2.07 1.23 -0.80 -1.38 0.50 1.54 -0.91 0.46 1.87 -0.20 -1.73 -1.52 -0.24 -1.58 0.76 0.84 -0.08 1.25 1.06 -1.87 -0.63 -0.27 1.01 0.60 1.04 0.14 -0.63 1.19 0.62 -1.43 0.76 -0.92 -0.86 0.00 -0.02 0.18 0.31 0.11 2.20 -1.16 -1.39 -1.47 1.71 0.85 0.43 1.60 -2.21 1.41 1.76 -2.04 -1.41 -1.26 0.52 1.12 -1.69 -0.23 -0.02 -1.31 -1.77 0.00 0.76 0.98 1.20 -0.10 1.48 -1.00 1.66 -0.21 0.44 0.21 1.38 -0.43 1.76

334 rows × 264 columns

In [ ]:
X_test_std
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.68 -0.09 1.23 0.00 -0.10 -0.66 3.02 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 3.02 -0.05 -0.11 -1.14 2.79 0.24 1.08 -0.39 6.38 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 2.16 -0.45 -0.42 -0.39 -0.84 -0.35 2.25 1.26 -0.42 -3.71 -0.39 -1.01 -2.37 0.19 0.93 0.32 2.53 3.43 1.05 1.01 1.64 3.23 0.34 3.66 -0.23 -0.34 2.93 1.95 1.41 0.79 1.79 -0.47 -0.94 -0.72 1.84 1.06 -0.34 -1.29 -3.04 -1.82 1.23 -3.46 -2.18 -1.34 -0.55 0.53 1.23 -1.86 -1.40 2.18 -0.66 -0.25 2.05 2.11 2.09 0.09 -4.15 1.73 -2.27 2.90 1.21 -0.42 0.94 -1.31 -1.12 1.11 0.07 0.23 -0.71 0.26 1.02 -0.34 -1.18 1.69 0.98 -0.31 0.96 -1.97 -0.22 2.32 1.00 0.74 -0.65 -2.48 -0.97 -4.72 3.07 -0.17 -1.67 2.68 0.12 1.31 -1.95 -1.84 1.91 -2.03 1.87 2.06 2.13 1.49 -2.90 0.89 -0.01 -3.05 0.05 -0.29 1.29 1.24 1.70 0.49 -1.42 -1.40 -0.23 2.16 -2.61 -1.89 -0.55 -1.01 1.00 1.04 2.42 1.87 -0.61 -1.31 -2.26 -1.87 0.94 1.57 2.39 1.26 2.04 -2.21 2.14 1.52 2.47 -1.81 -0.69 0.48 1.59 -0.97 4.92 1.13 -0.46 0.10 -1.66 0.04 -1.56 3.15 0.82 -2.69 2.02 1.42 -1.83 -3.29 1.27 0.12 -0.97 1.73 -3.17 -1.38 2.01 -2.06 -0.11 1.09 -3.20 -1.25 1.18 -1.32 0.06 1.99 -1.43 3.56 -1.60 0.09 -2.03 1.70 -0.07 1.06 2.19 -0.73 1.83 1.28 -1.47 -0.76 1.20 1.32 2.39 -0.21 -2.24 0.15 -0.25 -1.20 -1.88 0.52 0.48 1.17 -1.56 2.02 0.45 -0.79 1.32 2.87 1.29 2.05 -0.92 0.17
1 1.48 -1.02 -0.15 -1.00 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 4.61 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 -0.39 1.19 -0.35 -0.05 0.08 0.94 1.31 0.01 -0.32 1.33 0.91 -0.42 -1.49 -0.62 -1.24 -0.28 -0.16 -0.83 -0.50 2.06 -1.32 -0.76 0.59 -0.35 -0.89 -0.29 -1.39 -0.34 -0.47 0.81 -0.29 0.45 0.25 0.09 1.22 0.21 0.29 0.90 0.75 0.63 0.92 0.31 -0.27 -1.52 0.32 0.48 -0.94 0.08 -0.39 -1.16 0.53 -0.37 -0.47 0.05 -0.80 2.56 -1.25 -1.43 -0.26 -0.30 -0.77 1.04 -0.59 0.90 -1.46 0.81 -0.29 -0.46 1.04 0.35 -0.93 -0.86 0.30 -0.83 0.55 -0.79 -0.59 0.08 -0.63 0.92 1.34 1.66 0.29 -0.38 0.37 0.99 -1.31 -1.00 -1.14 0.54 1.13 -0.90 0.95 -1.10 -0.40 -0.74 -0.71 0.26 -0.75 0.22 0.86 1.70 -0.50 -1.18 1.01 -0.02 -0.65 0.89 0.34 -1.40 -0.90 1.25 0.12 -0.24 0.28 -0.84 -0.62 0.14 1.06 -0.43 -0.09 -0.14 0.57 -0.40 -0.00 -0.55 0.30 -1.02 1.01 -1.51 0.06 -0.92 0.78 0.29 -0.35 -0.40 0.89 -0.43 -0.84 -1.34 0.84 1.07 -0.07 0.42 0.29 -0.02 1.02 -0.80 -1.63 0.40 0.94 -0.07 -0.54 -0.58 -1.34 -0.36 0.35 -0.05 1.21 -0.14 -0.43 0.83 0.80 -0.89 0.16 -0.98 -1.00 1.31 -0.57 -0.12 -0.45 0.69 -0.96 0.30 0.19 -0.37 0.24 -1.55 0.53 0.43 0.60 -0.42 -0.34 -0.91 0.39 1.39 0.23 0.79 0.47 0.27 -0.45 -0.82 -0.85 -0.02 -1.29 0.34 -0.35 -1.32 -0.35 0.94 -0.55 0.78 -0.46
2 -0.68 1.79 1.11 1.86 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 5.69 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 2.53 -0.84 -0.35 0.31 -1.05 0.52 0.75 -0.06 -1.38 0.93 1.03 -0.35 -0.35 -0.79 -0.54 0.48 -0.39 -0.86 0.05 0.70 -0.60 0.34 1.12 -0.98 -1.05 -0.19 1.35 -1.13 0.16 0.93 -0.58 0.43 -0.73 -1.23 0.96 0.44 -0.48 0.50 0.65 1.03 0.85 0.60 1.08 0.37 0.73 -0.21 -0.83 1.46 -1.04 -0.95 -0.10 -0.78 -1.18 0.44 -1.45 -0.52 -0.92 -0.33 -0.36 1.48 -0.57 -0.05 0.01 -1.02 -0.77 0.97 0.29 -1.03 -0.94 1.09 -0.33 -0.81 -0.05 -0.98 0.83 -0.98 -1.04 0.72 -1.07 0.40 0.42 1.05 0.17 0.84 1.33 1.16 -0.43 0.28 -0.27 0.97 1.03 -0.79 1.03 -0.80 -0.92 -0.62 -0.23 1.08 -0.36 -0.50 0.66 -0.47 0.67 -0.45 -0.63 -0.70 -1.21 0.57 0.83 -0.63 -1.21 1.14 0.18 0.03 0.71 -0.12 -1.15 -0.58 -0.01 0.27 -0.20 1.07 -0.21 -1.35 -0.91 -1.02 -0.67 -1.34 1.09 0.03 -0.82 -0.41 0.42 0.88 -0.48 -0.63 1.14 -0.31 -0.97 -0.67 0.68 1.00 0.09 0.66 -1.37 -1.40 0.36 -1.04 -1.26 0.85 0.84 -0.84 -1.31 -1.11 -0.66 0.65 1.06 -0.54 -0.61 1.21 -1.05 0.72 0.87 -0.67 0.89 0.81 -0.33 0.27 -0.50 0.40 -0.49 0.93 -0.80 -0.57 -0.53 -1.04 0.73 -0.85 -1.42 0.57 1.26 -0.54 0.18 -1.00 0.83 0.92 -0.30 0.76 1.32 0.57 -0.54 -0.31 -1.19 0.39 -0.41 1.64 -0.91 0.18 -1.08 -0.55 -1.12 1.05 -0.93
3 -0.68 1.79 0.65 1.86 -0.10 -0.66 3.02 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 3.02 -0.05 -0.11 -1.14 2.79 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 2.53 -0.84 -0.35 -0.64 -0.40 0.69 -1.44 1.47 -1.90 -1.45 0.87 0.27 0.49 0.41 1.43 0.35 0.96 0.43 -0.71 -0.61 1.44 -0.81 -1.49 1.50 0.97 0.22 1.86 2.07 0.52 -1.28 -0.66 0.93 0.78 -0.12 0.21 -0.96 -2.41 -1.15 -1.34 -0.75 -0.98 -0.50 -0.59 -0.49 -1.08 -1.29 1.38 -0.03 0.18 0.38 -1.67 -0.58 0.25 -1.83 1.82 -2.73 0.68 0.94 -1.88 1.79 -0.94 0.02 -0.12 1.53 0.12 -0.90 1.92 -1.21 2.09 -0.01 0.69 0.36 1.61 1.28 -0.96 1.25 0.89 -1.62 -0.09 -1.04 -2.50 1.09 -0.54 1.01 -0.48 -0.90 -0.30 0.78 1.88 -1.63 -1.22 1.27 -0.56 3.38 0.58 0.47 0.39 -0.29 0.36 -0.70 -0.67 -2.38 1.89 0.71 -1.56 -0.47 0.91 -1.26 -1.01 0.88 1.23 -0.85 -1.19 1.31 -0.83 2.06 -0.77 -0.91 1.14 0.76 0.46 -1.87 -2.02 0.92 -0.16 1.48 0.80 1.08 -0.71 0.79 -0.22 1.55 -0.40 -0.06 0.26 0.28 -0.43 2.34 1.03 0.89 -0.92 -1.61 -1.13 0.60 -0.26 0.02 -1.11 0.93 1.02 -1.52 -0.79 1.69 0.41 0.85 0.96 -1.71 -1.01 0.09 0.02 -0.22 -0.68 -1.00 -0.34 0.26 -0.24 0.17 -0.85 -0.27 1.60 2.03 0.09 -0.76 1.13 -0.79 -1.27 1.86 -0.53 3.37 2.00 -2.47 -0.13 3.54 0.65 0.92 -0.34 -0.31 -0.02 -0.98 -0.84 -0.66 0.14 -0.96 1.31 0.22 1.34 -0.97 -0.58 -2.41 1.82 0.46 -0.02 -0.89 0.92
4 -0.68 1.17 0.54 1.22 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 2.50 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 -1.14 -0.36 0.24 -0.92 2.53 -0.16 12.88 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 2.53 -0.84 -0.35 -0.23 -1.25 0.96 0.28 -0.51 -0.78 0.26 0.92 -0.36 0.36 -0.71 0.01 -1.15 -0.79 -0.82 1.62 -1.11 -0.01 0.23 0.54 -0.86 -0.82 -0.74 0.81 -1.68 -0.71 0.53 -1.20 0.20 -0.76 -0.92 0.35 0.55 -0.21 0.96 0.84 0.90 0.74 -0.32 1.07 1.23 0.54 -0.51 -0.60 0.75 -1.27 -1.19 -0.78 0.50 -0.38 0.95 -0.26 -0.68 -0.66 -0.20 -1.39 1.54 0.06 0.16 0.30 -1.28 0.52 0.87 1.20 -0.99 -0.30 0.69 -0.11 0.61 0.81 -1.03 -0.23 -0.31 -0.90 0.68 -1.04 0.59 -0.04 1.02 0.49 -0.02 1.03 1.14 -0.82 -0.66 -0.83 0.83 0.71 -0.80 0.80 0.06 0.43 -0.96 0.77 0.31 -0.34 -1.46 0.22 -0.49 1.26 0.27 -0.56 -0.91 -0.83 -0.16 0.35 0.54 -0.83 0.94 -1.48 0.97 0.91 0.21 -0.84 -0.30 -1.32 -0.23 1.23 0.21 0.34 -0.47 -0.67 -0.69 -0.19 -0.01 0.96 -0.85 -0.77 -0.70 0.63 0.72 -0.97 -1.14 0.73 -0.09 -0.71 -0.22 0.63 0.50 -0.47 -0.14 0.51 -0.74 -0.30 -0.85 -0.60 0.10 1.21 0.29 -0.61 -1.16 -0.83 -0.34 0.80 -1.23 -0.46 1.02 -0.62 0.05 1.11 -0.50 0.38 1.23 -0.39 -0.20 -0.51 1.14 0.60 0.87 -1.05 -0.08 0.29 -1.05 1.18 -0.26 0.24 -0.03 1.15 0.48 -0.08 -0.82 0.53 0.84 -1.08 0.03 0.70 0.06 -0.99 -0.18 -0.48 0.53 -1.20 0.68 -0.53 -0.54 -0.07 0.68 -0.88 0.19 -1.26
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
79 1.48 -1.34 -1.07 -1.43 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 3.86 -0.08 -0.33 -0.05 -0.11 -1.14 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 4.61 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 1.19 -0.35 -0.29 -0.75 0.44 0.87 -0.84 -1.23 0.78 0.88 0.38 -0.08 -0.00 -0.87 -0.80 -0.42 -1.09 0.44 -0.09 -0.26 0.61 1.08 -1.30 -0.95 -0.05 0.78 -1.75 0.51 0.96 -1.44 0.80 -0.13 -0.61 0.70 0.05 -0.45 0.19 0.78 0.76 1.02 1.53 0.48 0.57 0.57 -0.05 -1.13 0.26 -1.13 -0.46 -0.26 -0.44 -1.05 0.22 0.56 -0.23 -0.61 -0.66 -0.50 0.83 -0.61 0.14 -0.14 -1.71 1.34 0.75 0.75 -1.10 -1.06 0.24 -0.43 0.10 0.01 -0.97 -0.66 -0.61 -1.07 0.74 -1.11 -0.23 0.62 0.86 0.22 0.86 1.02 1.04 -0.44 -0.21 0.42 0.41 0.83 -1.10 0.94 -0.91 -1.12 -0.40 -0.00 0.58 -0.72 -0.74 1.21 -0.55 0.64 -0.11 -1.42 -0.05 -0.87 1.45 1.34 -0.42 -1.15 0.95 -0.66 0.84 0.46 -1.23 -1.10 -0.97 0.19 -1.11 0.81 0.89 0.39 -0.58 -0.77 -0.12 -0.53 -1.24 0.61 -0.60 -0.66 -0.43 -0.10 1.22 -0.87 -0.72 1.06 0.17 -0.83 -1.36 0.73 0.26 1.19 -0.68 -2.21 -0.91 -0.24 -0.97 -0.17 0.24 1.00 -0.22 -1.16 -0.31 -0.92 0.46 0.45 -0.90 0.27 0.60 -0.58 1.33 1.07 -1.12 0.68 1.06 -0.12 0.01 -0.12 0.46 -0.71 0.91 -0.77 -0.17 -0.77 -0.69 0.23 0.08 -0.61 -0.07 0.69 -0.63 0.14 -1.01 0.91 0.01 -1.27 0.19 1.25 0.66 -0.78 -0.25 -0.91 0.80 -0.64 0.49 -0.77 0.53 0.29 -1.57 -0.85 1.07 -0.97
80 1.48 -1.02 -0.84 -1.07 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 5.42 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 -0.39 1.19 -0.35 -0.46 0.13 0.42 0.43 -0.22 0.44 0.08 -0.36 -0.35 0.69 -0.55 0.33 -0.26 2.02 -0.21 -1.22 1.96 -0.15 -2.27 -0.58 0.55 0.24 -0.93 1.45 -0.94 0.78 -0.20 -0.38 -0.89 -0.90 -0.59 -1.70 0.13 2.59 -1.29 0.51 -0.41 -0.15 0.37 -0.57 0.74 -0.59 1.35 -0.02 -0.51 0.30 0.73 2.80 -0.51 0.83 0.27 -0.72 0.90 -0.01 0.62 0.27 -0.70 -0.73 0.85 -1.53 -0.04 1.19 0.33 -1.35 1.22 2.51 0.05 1.32 -0.71 -1.76 0.18 0.68 0.43 0.65 0.39 0.55 -1.28 0.41 0.21 0.25 1.00 -0.41 0.72 -1.10 0.87 0.07 0.21 -0.81 -0.07 -0.27 -0.47 0.83 0.88 -1.05 -0.43 0.29 1.27 -0.86 1.59 -0.48 -0.74 0.54 -0.11 -0.61 -0.26 0.69 -0.78 0.42 0.27 -0.10 -0.51 0.54 0.22 -0.74 0.07 -0.03 -0.44 -0.41 -0.38 1.09 1.25 1.01 -0.85 -0.01 -1.19 -0.12 -0.28 0.88 0.05 0.34 -0.63 0.60 -0.28 0.51 -0.76 0.32 -0.94 -1.63 -0.47 -1.18 0.14 0.07 0.67 0.84 0.15 -0.15 -0.88 -0.17 -1.68 0.83 0.32 0.92 -1.10 -0.64 0.56 0.04 -0.84 0.55 0.86 0.19 -0.38 -1.13 -1.09 -1.98 1.80 -0.25 -1.14 -0.28 -0.27 -0.05 -1.62 0.35 0.48 -1.67 0.73 2.50 0.07 -0.68 0.70 -1.17 0.10 -0.38 0.43 0.80 -2.77 -0.59 -0.20 -0.71 0.36 0.20 0.16 -0.24 0.01 0.25 -2.52 -1.60 -0.06 1.51 -0.47 1.02
81 -0.68 1.79 0.88 1.86 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 2.53 -0.84 -0.35 0.25 -0.43 -0.50 -0.87 -0.01 -1.05 -0.06 -0.52 0.06 2.10 -0.07 0.29 0.74 -0.90 0.46 -0.16 0.18 -0.05 0.22 -1.26 0.44 0.20 -1.37 0.01 -0.30 -0.26 -0.13 -0.81 1.13 -0.05 -0.12 0.09 0.67 0.38 1.27 -0.36 -0.10 -0.99 0.01 -0.29 -0.54 0.08 -1.08 0.61 0.05 -0.49 0.10 1.15 -0.88 -0.17 0.26 0.30 -0.86 0.79 0.49 -1.26 -1.57 -0.76 -0.16 -1.76 -0.32 -1.81 -0.22 0.73 1.68 0.15 0.19 0.34 -0.59 0.12 0.14 -1.08 0.12 -0.25 -0.76 -0.23 -0.87 -0.94 -1.30 0.55 0.43 -0.69 0.19 0.24 -0.34 -0.27 0.24 -0.31 -0.14 0.09 0.31 -0.79 0.15 1.61 -0.24 -0.51 -1.01 -0.00 -0.02 0.42 0.42 -0.90 0.29 0.18 0.85 0.02 -0.86 0.13 -0.64 -0.37 -0.05 -0.61 -0.69 -0.80 -0.67 -0.58 -0.22 -0.02 -0.36 -0.24 0.26 -0.89 0.96 0.19 0.03 -0.09 -0.77 -0.45 0.18 0.84 -0.34 -0.40 -0.24 -0.45 1.45 0.26 -1.61 -0.08 -1.11 0.57 1.13 -1.21 0.70 -0.79 0.25 0.11 0.29 -0.27 0.01 -0.50 -0.08 0.60 -0.49 -0.51 -1.16 -1.53 -0.16 -0.18 -0.15 -0.17 -1.23 -0.37 -0.76 -2.14 -0.20 -1.12 1.33 1.29 -0.46 -0.13 -0.63 -1.06 0.29 0.58 1.42 0.61 -1.04 0.34 2.77 -0.95 0.21 0.10 0.39 1.32 -0.53 -0.49 0.41 -0.20 0.62 -0.25 1.07 -0.59 -0.28 -0.18 -0.54 0.09 0.25 0.43 -0.09 -0.06
82 -0.68 0.54 -0.84 0.43 -0.10 -0.66 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 0.91 0.38 -0.02 0.09 0.14 -0.23 -0.08 0.53 -0.31 -0.16 0.09 -0.03 0.77 -0.87 0.04 1.20 -0.05 -0.17 0.00 0.55 -0.31 -0.08 0.62 0.55 0.14 0.43 -0.43 0.54 1.77 0.20 0.25 -0.56 0.35 0.51 -0.86 0.89 -0.11 0.15 0.11 -0.02 1.34 -0.67 0.56 -0.63 0.65 0.31 -0.00 -0.20 0.36 -0.38 -1.27 -0.24 0.97 0.01 -0.17 1.27 0.43 -0.95 -0.77 -0.18 -0.35 0.40 0.34 0.85 -0.53 -1.27 -0.39 -0.06 0.82 -0.47 -0.41 1.05 0.04 0.31 1.39 -0.14 0.50 0.05 -0.26 0.60 0.28 0.68 -0.29 0.91 -0.87 -0.19 -0.07 0.17 -0.19 0.36 -0.76 0.74 0.46 0.19 0.29 -1.15 0.20 -0.49 0.26 -0.45 -1.04 0.61 1.76 0.08 0.43 0.15 -0.05 -0.23 0.52 0.87 -0.31 0.16 0.88 0.37 -0.44 -0.10 0.75 -0.44 0.15 -0.51 -0.09 0.98 -0.44 -0.67 -0.64 -0.17 -0.41 0.70 0.50 -1.53 0.11 -0.27 -0.11 -0.24 -0.27 -0.27 0.72 0.55 -0.03 0.40 0.10 -0.18 -0.22 -0.28 -0.16 0.23 0.77 0.48 0.02 1.16 -0.41 -0.04 -0.68 -0.11 0.19 1.53 0.50 -0.23 0.06 0.27 -0.19 0.73 -0.67 -0.85 -0.39 -0.08 -0.47 -0.61 -0.34 -0.06 -0.68 0.26 -0.36 -0.59 -0.56 -0.59 0.90 0.42 -1.62 -1.51 0.09 0.04 -0.19 -0.34 -1.07 -0.30 1.43 1.16 0.15 -0.16 1.17 0.18 1.11 0.10 0.25 -0.21 -0.66 -0.56 0.44 -0.47
83 -0.68 -0.71 0.42 -0.71 -0.10 -0.66 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 2.50 -0.34 -0.46 -0.45 -0.42 -0.39 1.19 -0.35 -0.87 -0.17 -0.35 0.31 -0.31 0.01 0.06 0.82 -1.08 0.47 -0.61 -0.30 -1.07 0.27 0.09 -2.29 -0.09 -0.07 -1.75 0.58 -0.24 -0.20 0.30 -0.04 -0.84 0.26 -0.15 -0.63 -0.03 -0.76 0.41 -0.15 1.62 0.04 0.23 1.31 0.11 -0.04 0.22 -2.53 -1.52 0.24 0.66 -0.06 0.31 0.33 -0.31 0.76 -0.02 0.48 0.81 1.26 0.95 0.32 0.10 2.16 -0.23 -0.50 -0.29 -2.65 -0.32 0.01 -0.39 -0.13 -0.19 1.67 -0.14 -1.75 -0.85 -1.60 0.07 0.22 -0.24 -0.10 -0.00 -0.15 -0.83 0.26 -0.25 0.46 0.09 -0.86 0.38 -0.42 0.15 1.04 0.87 0.26 -0.15 -0.21 1.02 -0.63 -0.24 0.15 0.33 -1.33 1.22 0.15 0.46 -0.20 -0.28 -0.32 0.30 -0.44 0.12 -0.32 -0.40 -0.10 -0.02 -1.12 -1.10 -0.23 -0.14 -1.04 0.13 0.04 0.01 -0.59 0.50 -0.16 0.09 1.32 -0.99 1.23 -0.85 -0.02 -0.67 -0.18 -1.49 0.25 0.09 0.91 -0.05 -0.00 -0.86 -0.92 -0.27 -0.99 -0.78 0.19 0.03 -0.04 0.68 -0.30 -0.12 -0.80 0.56 0.39 -0.72 0.69 0.15 -0.27 1.17 0.07 -0.42 1.19 -0.01 0.15 1.07 0.29 -0.38 -0.20 -1.13 -1.84 0.29 -0.10 0.21 -0.62 0.06 -0.05 -2.02 0.18 -0.06 0.04 1.24 0.10 -0.13 -0.06 -1.06 -1.68 -0.34 -0.07 0.81 0.68 -0.99 -0.06 0.53 0.44 1.20 0.44 2.16 -0.61 0.06 0.54 -1.52 -1.37 0.07 0.24 0.17 0.20

84 rows × 264 columns

In [ ]:
def function_model(model_name,model, x_train, y_train, x_test, y_test):
  print('Model: ', model_name)

  model.fit(x_train, y_train)
  y_pred=model.predict(x_test)

  train_accuracy_score= model.score(x_train, y_train)
  test_accuracy_score= model.score(x_test, y_test)

  print('Train Accuracy score: ', train_accuracy_score)
  print('Test Accuracy score: ', test_accuracy_score)

  cm=metrics.confusion_matrix(y_test, y_pred)
  cm=pd.DataFrame(cm)
  sns.heatmap(cm.T, annot=True, fmt='g', cbar=False);
  plt.title('Test Confusion Matrix')
  plt.xlabel('Actual')
  plt.ylabel('Predicted')
  plt.show()

  print('Classification report')
  print(classification_report(y_test, y_pred))

  precision=precision_score(y_test, y_pred, average='weighted')
  recall=recall_score(y_test, y_pred, average='weighted')
  f1=f1_score(y_test, y_pred, average='weighted')

  result=pd.DataFrame({ 'Model' : [model_name],
                 'Train Accuracy' : train_accuracy_score,
                 'Test Accuracy': test_accuracy_score,
                 'Precision': precision,
                 'recall' : recall,
                 'f1 score':f1
                })

  return result
In [ ]:
#creating a Dataframe to keep track of metrics of all Models
all_model_summary=  pd.DataFrame()

Trying Basic ML Model on original data¶

Model 1 Logistic regression Model

In [ ]:
logreg = LogisticRegression()


param_grid = {
    'C': [.01,0.1, 1.0],
    'solver': ['liblinear', 'lbfgs'],
    'max_iter': [100, 200, 300],
    'random_state': [42],
    'multi_class': ['multinomial']
}

# Perform grid search
grid_search = GridSearchCV(logreg, param_grid, cv=5, scoring='accuracy', n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'C': 0.01, 'max_iter': 100, 'multi_class': 'multinomial', 'random_state': 42, 'solver': 'lbfgs'}
Best Accuracy: 0.75
In [ ]:
lr= LogisticRegression(C=.01,solver='lbfgs', multi_class='multinomial', random_state = 42)

lr_result=function_model("Logistic Regression",lr, X_train_std, y_train, X_test_std, y_test)
Model:  Logistic Regression
Train Accuracy score:  0.7934131736526946
Test Accuracy score:  0.75
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.50      0.17      0.25         6
           3       1.00      0.17      0.29         6
           4       0.00      0.00      0.00         2

    accuracy                           0.75        84
   macro avg       0.45      0.26      0.28        84
weighted avg       0.66      0.75      0.67        84

In [ ]:
all_model_summary=all_model_summary.append(lr_result)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67

Model 2 KNN classifier

In [ ]:
#lets find best param for KNN
knn = KNeighborsClassifier()

param_grid = {
    'n_neighbors': [3, 5, 7,9,11,13,15,7,19],
    'weights': ['uniform', 'distance'],
    'p': [1, 2,3,4],
    'metric': ['minkowski','euclidean', 'manhattan']
}

# Perform grid search
grid_search = GridSearchCV(knn, param_grid, cv=5, scoring='accuracy', n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'metric': 'minkowski', 'n_neighbors': 9, 'p': 2, 'weights': 'uniform'}
Best Accuracy: 0.75
In [ ]:
knn=KNeighborsClassifier(n_neighbors=9, metric='minkowski', p=1, weights='uniform', n_jobs=-1)

knn_result=function_model("K Nearest Neighbour",knn, X_train_std, y_train, X_test_std, y_test)
Model:  K Nearest Neighbour
Train Accuracy score:  0.7425149700598802
Test Accuracy score:  0.75
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      1.00      0.86        62
           1       0.00      0.00      0.00         8
           2       1.00      0.17      0.29         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.75        84
   macro avg       0.35      0.23      0.23        84
weighted avg       0.62      0.75      0.65        84

In [ ]:
all_model_summary=all_model_summary.append(knn_result)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
0 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65

Model 3 SVC

In [ ]:
#lets do grid search for SVC
mod_svm = svm.SVC()

param_grid = {
    'C': [0.1,1,10,100],
    'kernel': ['rbf', 'linear', 'poly'],
    'gamma': [.01,0.1,1,10],
    #'degree':[2,3,4],
    'random_state':[42]
}

# Perform grid search
grid_search = GridSearchCV(mod_svm, param_grid, scoring='accuracy', n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'C': 0.1, 'gamma': 0.01, 'kernel': 'rbf', 'random_state': 42}
Best Accuracy: 0.7380952380952381
In [ ]:
svc=svm.SVC(C=.1, degree=2, gamma=.01, kernel='rbf', random_state=42)

svc_result=function_model("SVC",svc, X_train_std, y_train, X_test_std, y_test)
Model:  SVC
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(svc_result)
all_model_summary.reset_index(drop=True, inplace=True)
In [ ]:
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63

Model 4- Decision Trees

In [ ]:
#lets do grid search for Decision trees
param_grid = {
    'criterion': ['gini', 'entropy'],
    'max_depth': [3,4,5,6,7,8],
    'min_samples_split': [3,5,7,9],
    'random_state': [42],
    'min_samples_leaf': [3,5,10,15,20],
}


clf = DecisionTreeClassifier()

# Perform grid search
grid_search = GridSearchCV(estimator=clf, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'criterion': 'entropy', 'max_depth': 3, 'min_samples_leaf': 15, 'min_samples_split': 3, 'random_state': 42}
Best Accuracy: 0.7380952380952381
In [ ]:
dt=DecisionTreeClassifier(criterion='entropy', random_state=42, max_depth=3, min_samples_leaf=10, min_samples_split=3)

dt_result=function_model("Decision Tree",dt, X_train_std, y_train, X_test_std, y_test)
Model:  Decision Tree
Train Accuracy score:  0.7514970059880239
Test Accuracy score:  0.7261904761904762
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.73        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.55      0.73      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(dt_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63

Model 5- Random Forest

In [ ]:
#lets do grid search for random forest
param_grid = {
    'n_estimators': [50,100,150],
    'criterion': ['gini'],
    'max_depth': [4,5,6,7,8],
    'min_samples_split': [15,20,25,30],
    'random_state': [42],
    'min_samples_leaf': [3,4,5,6],
    'max_features': ['sqrt', 'log2']
}

# Create a decision tree classifier
rf = RandomForestClassifier()


# Perform grid search
grid_search = GridSearchCV(estimator=rf, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'criterion': 'gini', 'max_depth': 4, 'max_features': 'sqrt', 'min_samples_leaf': 3, 'min_samples_split': 15, 'n_estimators': 50, 'random_state': 42}
Best Accuracy: 0.7380952380952381
In [ ]:
rf=RandomForestClassifier(criterion='gini', random_state=42, max_depth=4, min_samples_leaf=3, min_samples_split=15,
                                  n_estimators=100, max_features='sqrt')

rf_result=function_model("Random Forest",rf, X_train_std, y_train, X_test_std, y_test)
Model:  Random Forest
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(rf_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63

Model 6- Adaboost

In [ ]:
#grid search for Adaboost
param_grid = {
    'n_estimators': [50,75,150,175],
    'learning_rate': [.001,.05,0.1,.5,.75,1],
    'random_state': [42]
}

# Create a decision tree classifier
adab = AdaBoostClassifier()

# Perform grid search
grid_search = GridSearchCV(estimator=adab, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'learning_rate': 0.001, 'n_estimators': 50, 'random_state': 42}
Best Accuracy: 0.7380952380952381
In [ ]:
ada_boost= AdaBoostClassifier(random_state=42, n_estimators=75, learning_rate=.1)

ada_result=function_model("Ada Boost",ada_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Ada Boost
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(ada_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63

Model 7- Gradient Boosting

In [ ]:
#grid search for Gradient boosting
param_grid = {
    'n_estimators': [50, 100],
    'learning_rate': [0.1,.01],
    'max_depth': [3, 4,7],
    'random_state': [42],
    'subsample': [.5,.7,.9],
    #'min_samples_split': [3,4,5,6,10],
    #'min_samples_leaf': [2, 3,5,10],
    'max_features': ['auto', 'sqrt']
}

# Create a decision tree classifier
gradB = GradientBoostingClassifier()


# Perform grid search
grid_search = GridSearchCV(estimator=gradB, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'learning_rate': 0.01, 'max_depth': 3, 'max_features': 'auto', 'n_estimators': 50, 'random_state': 42, 'subsample': 0.5}
Best Accuracy: 0.7380952380952381
In [ ]:
grad_boost= GradientBoostingClassifier(random_state=42, n_estimators=50, learning_rate=.01, max_depth=3, max_features='auto', subsample=.5)

gb_result=function_model("Gradient Boosting",grad_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Gradient Boosting
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(gb_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')

Model 8- XGboost

In [ ]:
#lets try Grid search for XGboost
param_grid = {
    'booster': ['gbtree'], #, 'gblinear', 'dart'],
    'n_estimators': [30,50],
    'learning_rate': [0.01, 0.1], # , 0.5],
    'max_depth':  [5,6],
    'sampling_method': ['uniform'], #, 'gradient_based'],
    'reg_alpha': [0.1, 0.3],
    'reg_lambda': [0.1, 0.3]
}

xgb_clf = xgb.XGBClassifier()


# Perform grid search
grid_search = GridSearchCV(estimator=xgb_clf, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
Best Hyperparameters: {'booster': 'gbtree', 'learning_rate': 0.1, 'max_depth': 6, 'n_estimators': 50, 'reg_alpha': 0.1, 'reg_lambda': 0.1, 'sampling_method': 'uniform'}
Best Accuracy: 0.7380952380952381
In [ ]:
xgb_clf = xgb.XGBClassifier(booster='gbtree', learning_rate=.1, max_depth=6, n_estimator=50, sampling_method='uniform', reg_alpha=.7, reg_lambda=.7)

xgb_result=function_model("XGB",xgb_clf, X_train_std, y_train, X_test_std, y_test)
Model:  XGB
Train Accuracy score:  0.9970059880239521
Test Accuracy score:  0.75
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.77      0.98      0.87        62
           1       0.25      0.12      0.17         8
           2       1.00      0.17      0.29         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.75        84
   macro avg       0.40      0.26      0.26        84
weighted avg       0.67      0.75      0.67        84

In [ ]:
all_model_summary=all_model_summary.append(xgb_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')

Model 9- Lightgbm

In [ ]:
# Define the parameter grid for grid search
param_grid = {
    'learning_rate': [0.01, 0.1],
    'n_estimators': [50, 100],
    'max_depth': [3, 4, 5],
    'colsample_bytree': [0.8, 1.0],
    'reg_alpha': [0.5, 0.3],
    'reg_lambda': [0.5, 0.3]
}

# Initialize the LGBMClassifier
lgbm_clf = LGBMClassifier()


# Perform grid search
grid_search = GridSearchCV(estimator=lgbm_clf, param_grid=param_grid, cv=5, n_jobs=-1)

# Fit the grid search to the training data
grid_search.fit(X_train_std, y_train)

# Get the best hyperparameter values and model
best_params = grid_search.best_params_
best_model = grid_search.best_estimator_

# Evaluate the best model on the test data
accuracy = best_model.score(X_test_std, y_test)

# Print the best hyperparameters and accuracy
print("Best Hyperparameters:", best_params)
print("Best Accuracy:", accuracy)
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.001107 seconds.
You can set `force_col_wise=true` to remove the overhead.
[LightGBM] [Info] Total Bins 22572
[LightGBM] [Info] Number of data points in the train set: 334, number of used features: 226
[LightGBM] [Info] Start training from score -0.301753
[LightGBM] [Info] Start training from score -2.345405
[LightGBM] [Info] Start training from score -2.592265
[LightGBM] [Info] Start training from score -2.633087
[LightGBM] [Info] Start training from score -4.019382
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Best Hyperparameters: {'colsample_bytree': 0.8, 'learning_rate': 0.01, 'max_depth': 3, 'n_estimators': 50, 'reg_alpha': 0.5, 'reg_lambda': 0.5}
Best Accuracy: 0.7380952380952381
In [ ]:
lgbm = LGBMClassifier(colsample_bytree=.8, learning_rate=.01, max_depth=3, n_estimators=50, reg_alpha=.5, reg_lambda=.5)

lgbm_result=function_model("Light GBM",lgbm, X_train_std, y_train, X_test_std, y_test)
Model:  Light GBM
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.001123 seconds.
You can set `force_col_wise=true` to remove the overhead.
[LightGBM] [Info] Total Bins 22572
[LightGBM] [Info] Number of data points in the train set: 334, number of used features: 226
[LightGBM] [Info] Start training from score -0.301753
[LightGBM] [Info] Start training from score -2.345405
[LightGBM] [Info] Start training from score -2.592265
[LightGBM] [Info] Start training from score -2.633087
[LightGBM] [Info] Start training from score -4.019382
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(lgbm_result)
all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')
all_model_summary.to_pickle('dataframe_original_data.pickle')

Trying Basic Models on Upsampled data¶

In [ ]:
X.shape, y.shape
Out[ ]:
((418, 264), (418, 1))
In [ ]:
X.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2.67 19.93 -0.02 -11.31 4.04 18.14 -20.14 -6.10 -8.21 4.63 3.11 15.66 10.79 6.70 26.09 -4.53 1.19 9.09 -2.72 -3.46 12.15 190.84 9.77 -0.78 7.47 6.58 -11.65 6.54 -0.95 0.20 7.98 -12.03 -0.97 0.98 -2.10 -9.37 -41.08 -20.13 -11.45 -5.36 7.23 -10.80 4.97 21.31 -2.24 20.89 18.45 8.54 8.90 25.43 -3.23 1.49 1.05 12.76 7.87 -1.14 -4.37 1.10 -7.29 1.75 8.16 -5.17 -25.68 -5.67 11.25 3.77 -7.76 5.77 1.05 -3.76 25.22 1.71 12.38 11.06 -8.73 29.33 -4.13 -1.59 -0.69 -6.89 2.70 -10.90 -14.63 6.54 6.32 -1.95 -12.52 -19.81 43.11 -42.60 6.03 4.27 21.24 3.14 -11.58 2.93 13.89 -4.29 -1.77 -8.97 -3.26 0.65 -0.18 6.51 -6.15 -10.93 4.11 71.02 -10.99 -4.04 -5.59 -11.30 2.55 12.96 6.92 -1.62 1.80 -7.94 -12.47 -4.87 14.83 4.63 3.98 14.47 3.33 -29.71 19.52 9.04 -1.27 0.75 -13.11 19.56 14.75 -23.56 -3.28 15.42 2.83 -12.38 -8.16 -8.13 -1.44 8.98 9.91 -4.95 80.26 7.33 -9.03 -14.68 1.33 7.16 5.42 14.30 1.88 -12.86 14.71 5.82 -14.77 20.58 -6.51 -35.25 9.24 -6.12 -12.51 1.72 -2.21 7.77 -14.43 -3.10 -20.84 37.39 6.31 7.50 14.83 -10.61 2.97 0.99 -8.24 -26.16 -0.57 0.48 66.47 -17.27 -3.35 2.47 -5.73 -11.07 -8.87 4.73 6.53 23.39 -4.08 10.43 -12.26 15.43 -1.27 1.52 -0.27 5.65 -9.59 16.00
In [ ]:
smote=SMOTE(random_state=42)
X_train_smote,y_train_smote= smote.fit_resample(X_train, y_train)
In [ ]:
X_train_smote.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 2016 6 10 23 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.81 -1.65 -5.14 -9.69 -0.15 4.13 -9.99 -5.60 3.87 0.63 3.83 8.38 2.95 5.02 11.75 -2.51 -1.94 8.50 -1.15 -4.10 10.89 90.24 4.39 -1.64 2.86 6.08 -5.36 -0.27 -3.11 -2.12 -0.63 0.71 -2.20 2.31 0.19 -4.43 -20.56 -13.03 -8.78 -0.57 -0.45 -4.41 -1.48 12.82 -2.84 3.83 4.87 2.94 0.82 8.92 0.23 4.16 -1.99 8.01 4.43 0.52 -0.31 -0.37 0.90 2.84 0.28 0.73 -12.25 -2.59 4.63 -0.93 -3.31 -1.61 0.98 -2.07 4.20 -4.51 3.45 7.95 -3.40 9.12 -0.95 -4.63 -2.74 -2.24 0.68 -8.48 -5.58 1.88 6.15 3.65 -3.16 -12.01 14.88 -21.82 2.75 4.42 6.66 3.31 -7.28 0.22 0.23 -5.04 0.08 3.05 -3.67 -3.17 -3.70 6.73 -6.13 -9.47 4.01 31.45 -7.61 -0.44 -2.29 -6.51 -0.95 0.57 4.76 2.01 -3.20 -2.37 -3.69 -6.22 7.25 4.38 1.71 7.00 7.81 -13.54 8.04 2.66 3.39 -2.32 -2.57 5.60 10.67 -12.71 3.47 8.87 2.77 -4.99 -11.07 -1.16 1.10 1.97 4.33 -5.62 46.71 6.58 3.42 -9.78 5.09 1.28 3.62 6.03 -0.55 -5.91 2.34 -2.82 -3.72 8.18 -1.98 -14.60 1.90 2.67 -1.06 -1.47 -0.48 0.94 -1.38 0.77 -13.99 16.47 3.13 -0.56 11.24 -1.03 4.38 6.48 0.06 -7.40 7.11 -2.76 29.91 -6.12 -4.04 5.83 -2.79 -11.26 -5.57 0.88 3.21 10.36 2.05 5.50 -5.14 5.31 4.07 -0.02 0.63 6.38 -9.76 6.88
In [ ]:
X_train_smote.shape, y_train_smote.shape
Out[ ]:
((1235, 264), (1235, 1))
In [ ]:
y_train_smote.value_counts()
Out[ ]:
Accident Level
0                 247
1                 247
2                 247
3                 247
4                 247
dtype: int64
In [ ]:
y_train_smote.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.20
1                0.20
2                0.20
3                0.20
4                0.20
dtype: float64
In [ ]:
y_test.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.74
1                0.10
2                0.07
3                0.07
4                0.02
dtype: float64
In [ ]:
ss_smote = StandardScaler()

X_train_smote_std= ss_smote.fit_transform(X_train_smote)

X_test_smote_std = ss_smote.transform(X_test)

X_train_smote_std=pd.DataFrame(X_train_smote_std, columns= X_train_smote.columns)
X_test_smote_std=pd.DataFrame(X_test_smote_std, columns= X_test.columns)
In [ ]:
X_train_smote_std.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.51 0.36 -0.56 0.20 -0.05 2.27 -0.18 -0.13 -0.34 -0.27 5.08 -0.19 -0.09 -0.14 -0.04 -0.18 -0.03 -0.06 -1.01 -0.19 0.19 -0.74 3.80 -0.08 -0.04 -0.03 -0.11 -0.03 -0.09 -0.03 -0.03 -0.09 -0.07 -0.06 -0.03 -0.04 -0.03 9.02 -0.76 0.00 -0.03 -0.15 -0.11 -0.07 -0.05 -0.09 -0.03 -0.03 -0.03 0.00 -0.07 -0.03 -0.08 -0.09 -0.06 -0.22 -0.30 -0.19 -0.24 -0.24 -0.30 -0.27 -0.61 -0.20 -1.16 -1.97 0.24 0.69 -0.36 -1.22 0.97 0.58 0.95 0.23 -0.67 -0.51 -0.83 -1.16 -1.07 -0.27 0.10 -0.60 0.19 0.97 -0.30 -1.09 -0.07 1.08 -1.13 1.39 0.95 -1.38 0.04 -1.51 -1.38 1.78 -0.39 0.64 0.19 0.83 0.91 0.82 -0.49 0.90 0.32 1.30 -1.03 -0.76 0.64 -1.35 -1.28 -0.26 -1.11 -1.34 1.32 0.60 -0.40 -1.00 -0.12 -0.15 0.70 -1.07 1.66 0.67 -0.86 1.15 0.91 0.72 -0.86 -0.59 1.19 -0.87 0.61 0.02 -1.60 -0.65 -1.17 -0.67 0.57 -1.27 0.47 0.72 0.48 1.15 0.02 0.94 1.17 -1.26 -0.47 0.33 0.98 0.78 -1.44 0.91 -0.76 -0.70 -1.24 0.85 0.26 -0.99 -1.78 0.33 0.04 2.34 -0.57 -0.89 -1.82 -0.35 0.41 0.63 -0.18 -1.18 0.89 -0.28 0.18 0.68 -1.34 -1.62 -0.92 0.65 -1.60 0.67 1.24 -0.11 -0.83 -0.43 -0.74 -0.67 -0.34 1.18 -1.13 -1.35 0.30 0.59 1.23 -0.91 -0.74 1.01 0.71 -0.40 -0.27 1.12 0.22 0.12 0.72 -1.12 -1.14 0.16 -0.90 -0.42 1.99 0.67 0.48 -0.48 -0.51 -0.85 0.34 0.96 -1.49 -0.66 1.30 -0.81 0.92 1.25 -0.27 1.31 1.71 -1.24 1.28 -1.25 1.12 -0.02 0.96 -1.09 -0.28 -1.73 -0.70 1.19 -0.21 1.42 0.54 1.40 0.46 -0.76 -1.15 1.03 0.87 0.54 0.23 0.76 0.67 -0.93 -0.26 -1.08 1.89 -0.51 0.81 -0.90 -0.12 -0.78 -0.56 -0.88 0.39 -0.82
In [ ]:
X_train_smote_std.shape, y_train_smote.shape
Out[ ]:
((1235, 264), (1235, 1))
In [ ]:
X_test_smote_std.shape, y_test.shape
Out[ ]:
((84, 264), (84, 1))

Logistic regression Smote

In [ ]:
lr_smote_result=function_model("Logistic Regression SMOTE",lr, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Logistic Regression SMOTE
Train Accuracy score:  0.962753036437247
Test Accuracy score:  0.6666666666666666
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.79      0.84      0.81        62
           1       0.25      0.25      0.25         8
           2       0.12      0.17      0.14         6
           3       0.50      0.17      0.25         6
           4       0.00      0.00      0.00         2

    accuracy                           0.67        84
   macro avg       0.33      0.28      0.29        84
weighted avg       0.65      0.67      0.65        84

KNN Smote

In [ ]:
knn_smote_result=function_model("K Nearest Neighbour SMOTE",knn,X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  K Nearest Neighbour SMOTE
Train Accuracy score:  0.8242914979757086
Test Accuracy score:  0.13095238095238096
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       1.00      0.08      0.15        62
           1       0.04      0.12      0.06         8
           2       0.07      0.33      0.11         6
           3       0.15      0.50      0.23         6
           4       0.00      0.00      0.00         2

    accuracy                           0.13        84
   macro avg       0.25      0.21      0.11        84
weighted avg       0.76      0.13      0.14        84

SVC Smote

In [ ]:
svc_smote_result=function_model("SVC SMOTE",svc, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  SVC SMOTE
Train Accuracy score:  0.8696356275303644
Test Accuracy score:  0.7142857142857143
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.73      0.97      0.83        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.15      0.19      0.17        84
weighted avg       0.54      0.71      0.62        84

Decision Trees Smote

In [ ]:
dt_smote_result=function_model("Decision Tree SMOTE",dt, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Decision Tree SMOTE
Train Accuracy score:  0.5797570850202429
Test Accuracy score:  0.07142857142857142
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.00      0.00      0.00        62
           1       0.20      0.38      0.26         8
           2       0.05      0.33      0.09         6
           3       0.03      0.17      0.05         6
           4       0.00      0.00      0.00         2

    accuracy                           0.07        84
   macro avg       0.06      0.17      0.08        84
weighted avg       0.03      0.07      0.04        84

Random Forest Smote

In [ ]:
rf_smote_result=function_model("Random Forest SMOTE",rf, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Random Forest SMOTE
Train Accuracy score:  0.8817813765182186
Test Accuracy score:  0.4166666666666667
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.88      0.45      0.60        62
           1       0.12      0.38      0.19         8
           2       0.18      0.33      0.24         6
           3       0.14      0.33      0.20         6
           4       0.00      0.00      0.00         2

    accuracy                           0.42        84
   macro avg       0.26      0.30      0.24        84
weighted avg       0.68      0.42      0.49        84

Ada Boost Smote

In [ ]:
ada_smote_result=function_model("Ada Boost SMOTE",ada_boost, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Ada Boost SMOTE
Train Accuracy score:  0.6380566801619433
Test Accuracy score:  0.4880952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.77      0.55      0.64        62
           1       0.14      0.25      0.18         8
           2       0.17      0.33      0.22         6
           3       0.21      0.50      0.30         6
           4       0.00      0.00      0.00         2

    accuracy                           0.49        84
   macro avg       0.26      0.33      0.27        84
weighted avg       0.61      0.49      0.53        84

In [ ]:
gb_smote_result=function_model("Gradient Boosting SMOTE",grad_boost, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Gradient Boosting SMOTE
Train Accuracy score:  0.9441295546558705
Test Accuracy score:  0.5119047619047619
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.83      0.56      0.67        62
           1       0.18      0.50      0.27         8
           2       0.18      0.33      0.24         6
           3       0.17      0.17      0.17         6
           4       0.33      0.50      0.40         2

    accuracy                           0.51        84
   macro avg       0.34      0.41      0.35        84
weighted avg       0.67      0.51      0.56        84

XGB Smote

In [ ]:
xgb_smote_result=function_model("XGB SMOTE",xgb_clf, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  XGB SMOTE
Train Accuracy score:  0.9991902834008097
Test Accuracy score:  0.7142857142857143
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.77      0.92      0.84        62
           1       0.20      0.12      0.15         8
           2       0.25      0.17      0.20         6
           3       1.00      0.17      0.29         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.44      0.28      0.30        84
weighted avg       0.68      0.71      0.67        84

LGBM Smote

In [ ]:
lgbm_smote_result=function_model("Light GBM SMOTE",lgbm, X_train_smote_std, y_train_smote, X_test_smote_std, y_test)
Model:  Light GBM SMOTE
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.006040 seconds.
You can set `force_col_wise=true` to remove the overhead.
[LightGBM] [Info] Total Bins 51177
[LightGBM] [Info] Number of data points in the train set: 1235, number of used features: 229
[LightGBM] [Info] Start training from score -1.609438
[LightGBM] [Info] Start training from score -1.609438
[LightGBM] [Info] Start training from score -1.609438
[LightGBM] [Info] Start training from score -1.609438
[LightGBM] [Info] Start training from score -1.609438
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Train Accuracy score:  0.9263157894736842
Test Accuracy score:  0.5
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.88      0.56      0.69        62
           1       0.20      0.62      0.30         8
           2       0.10      0.17      0.12         6
           3       0.12      0.17      0.14         6
           4       0.00      0.00      0.00         2

    accuracy                           0.50        84
   macro avg       0.26      0.30      0.25        84
weighted avg       0.68      0.50      0.55        84

In [ ]:
all_model_summary=all_model_summary.append(lr_smote_result)
all_model_summary=all_model_summary.append(knn_smote_result)
all_model_summary=all_model_summary.append(svc_smote_result)
all_model_summary=all_model_summary.append(dt_smote_result)
all_model_summary=all_model_summary.append(rf_smote_result)
all_model_summary=all_model_summary.append(ada_smote_result)
all_model_summary=all_model_summary.append(gb_smote_result)
all_model_summary=all_model_summary.append(xgb_smote_result)
all_model_summary=all_model_summary.append(lgbm_smote_result)


all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63
9 Logistic Regression SMOTE 0.96 0.67 0.65 0.67 0.65
10 K Nearest Neighbour SMOTE 0.82 0.13 0.76 0.13 0.14
11 SVC SMOTE 0.87 0.71 0.54 0.71 0.62
12 Decision Tree SMOTE 0.58 0.07 0.03 0.07 0.04
13 Random Forest SMOTE 0.88 0.42 0.68 0.42 0.49
14 Ada Boost SMOTE 0.64 0.49 0.61 0.49 0.53
15 Gradient Boosting SMOTE 0.94 0.51 0.67 0.51 0.56
16 XGB SMOTE 1.00 0.71 0.68 0.71 0.67
17 Light GBM SMOTE 0.93 0.50 0.68 0.50 0.55
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')
all_model_summary.to_pickle('dataframe_original_smote.pickle')

Try Basic models on Downsampled data¶

In [ ]:
X.shape, y.shape
Out[ ]:
((418, 264), (418, 1))
In [ ]:
X.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2.67 19.93 -0.02 -11.31 4.04 18.14 -20.14 -6.10 -8.21 4.63 3.11 15.66 10.79 6.70 26.09 -4.53 1.19 9.09 -2.72 -3.46 12.15 190.84 9.77 -0.78 7.47 6.58 -11.65 6.54 -0.95 0.20 7.98 -12.03 -0.97 0.98 -2.10 -9.37 -41.08 -20.13 -11.45 -5.36 7.23 -10.80 4.97 21.31 -2.24 20.89 18.45 8.54 8.90 25.43 -3.23 1.49 1.05 12.76 7.87 -1.14 -4.37 1.10 -7.29 1.75 8.16 -5.17 -25.68 -5.67 11.25 3.77 -7.76 5.77 1.05 -3.76 25.22 1.71 12.38 11.06 -8.73 29.33 -4.13 -1.59 -0.69 -6.89 2.70 -10.90 -14.63 6.54 6.32 -1.95 -12.52 -19.81 43.11 -42.60 6.03 4.27 21.24 3.14 -11.58 2.93 13.89 -4.29 -1.77 -8.97 -3.26 0.65 -0.18 6.51 -6.15 -10.93 4.11 71.02 -10.99 -4.04 -5.59 -11.30 2.55 12.96 6.92 -1.62 1.80 -7.94 -12.47 -4.87 14.83 4.63 3.98 14.47 3.33 -29.71 19.52 9.04 -1.27 0.75 -13.11 19.56 14.75 -23.56 -3.28 15.42 2.83 -12.38 -8.16 -8.13 -1.44 8.98 9.91 -4.95 80.26 7.33 -9.03 -14.68 1.33 7.16 5.42 14.30 1.88 -12.86 14.71 5.82 -14.77 20.58 -6.51 -35.25 9.24 -6.12 -12.51 1.72 -2.21 7.77 -14.43 -3.10 -20.84 37.39 6.31 7.50 14.83 -10.61 2.97 0.99 -8.24 -26.16 -0.57 0.48 66.47 -17.27 -3.35 2.47 -5.73 -11.07 -8.87 4.73 6.53 23.39 -4.08 10.43 -12.26 15.43 -1.27 1.52 -0.27 5.65 -9.59 16.00
In [ ]:
tomek = TomekLinks(sampling_strategy='majority')
In [ ]:
X_train_tomek, y_train_tomek = tomek.fit_resample(X_train, y_train)
In [ ]:
X_train.shape, y_train.shape
Out[ ]:
((334, 264), (334, 1))
In [ ]:
X_train_tomek.shape, y_train_tomek.shape
Out[ ]:
((312, 264), (312, 1))
In [ ]:
y_train_tomek.value_counts()
Out[ ]:
Accident Level
0                 225
1                  32
2                  25
3                  24
4                   6
dtype: int64
In [ ]:
y_train_tomek.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.72
1                0.10
2                0.08
3                0.08
4                0.02
dtype: float64
In [ ]:
y_test.value_counts(normalize=True)
Out[ ]:
Accident Level
0                0.74
1                0.10
2                0.07
3                0.07
4                0.02
dtype: float64
In [ ]:
ss_tomek = StandardScaler()

X_train_tomek_std= ss_tomek.fit_transform(X_train_tomek)
X_test_tomek_std = ss_tomek.transform(X_test)
In [ ]:
X_train_tomek_std=pd.DataFrame(X_train_tomek_std, columns= X_train_tomek.columns)
X_test_tomek_std=pd.DataFrame(X_test_tomek_std, columns= X_test.columns)
In [ ]:
X_train_tomek_std.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.66 0.21 -0.61 0.13 -0.10 1.55 -0.33 -0.25 -0.53 -0.39 2.61 -0.36 -0.16 -0.27 -0.08 -0.33 -0.06 -0.10 -1.15 -0.36 0.24 -0.93 2.54 -0.16 -0.08 -0.06 -0.22 0.00 -0.17 -0.06 -0.06 -0.15 -0.11 -0.13 -0.06 -0.08 -0.06 4.61 -1.15 0.00 -0.06 -0.10 -0.20 -0.14 -0.10 -0.17 -0.06 -0.06 -0.06 0.00 -0.13 -0.06 -0.16 -0.16 -0.11 -0.36 -0.40 -0.33 -0.47 -0.46 -0.43 -0.39 -0.84 -0.36 -1.14 -1.74 0.11 0.48 -0.19 -0.82 0.70 0.29 1.04 0.23 -0.43 -0.35 -0.57 -0.67 -0.77 -0.51 0.12 -0.43 0.20 0.69 -0.12 -0.82 -0.15 0.80 -0.84 1.53 0.76 -1.09 -0.01 -1.05 -1.09 1.55 -0.42 0.47 0.07 0.77 0.65 0.52 -0.68 0.78 0.04 0.92 -0.90 -0.51 0.38 -1.11 -1.12 -0.14 -0.72 -1.01 1.11 0.41 -0.46 -0.81 0.03 -0.08 0.45 -0.89 1.28 0.56 -0.63 0.88 0.63 0.40 -0.59 -0.91 0.85 -0.72 0.65 0.18 -1.29 -0.66 -0.92 -0.36 0.41 -0.92 0.47 0.50 0.23 0.89 0.03 0.61 0.83 -0.90 -0.18 0.35 0.78 0.61 -1.07 0.69 -0.48 -0.44 -1.03 0.72 0.05 -0.71 -1.27 0.18 0.06 1.84 -0.68 -0.68 -1.42 -0.13 0.24 0.27 0.21 -0.91 0.59 -0.11 0.08 0.37 -1.21 -1.40 -0.72 0.53 -1.37 0.45 0.91 -0.05 -0.57 -0.22 -0.59 -0.35 -0.08 0.90 -0.75 -0.90 0.49 0.38 1.03 -0.67 -0.50 0.81 0.50 -0.12 -0.04 0.90 -0.04 0.01 0.53 -0.77 -0.87 -0.14 -0.63 -0.26 1.51 0.48 0.51 -0.38 -0.30 -0.64 0.34 0.62 -1.12 -0.99 0.98 -0.56 0.73 0.87 -0.36 1.08 1.18 -0.99 1.05 -0.91 0.81 -0.14 0.69 -0.76 0.01 -1.32 -0.41 0.87 0.04 1.34 0.53 1.12 0.72 -0.79 -0.88 0.74 0.72 0.45 0.08 0.47 0.42 -0.66 -0.13 -0.88 1.38 -0.24 0.63 -0.67 0.05 -0.57 -0.38 -0.65 0.17 -0.48
In [ ]:
X_train_tomek_std.shape, y_train_tomek.shape
Out[ ]:
((312, 264), (312, 1))
In [ ]:
X_test_tomek_std.shape, y_test.shape
Out[ ]:
((84, 264), (84, 1))

Logistic Regression Tomek (Undersampling)

In [ ]:
lr_tomek_result=function_model("Logistic Regression tomek (Undersampling)",lr, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Logistic Regression tomek (Undersampling)
Train Accuracy score:  0.7916666666666666
Test Accuracy score:  0.75
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.50      0.17      0.25         6
           3       1.00      0.17      0.29         6
           4       0.00      0.00      0.00         2

    accuracy                           0.75        84
   macro avg       0.45      0.26      0.28        84
weighted avg       0.66      0.75      0.67        84

KNN Tomek (Undersampling)

In [ ]:
knn_tomek_result=function_model("K Nearest Neighbour tomek(Undersampling)",knn,X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  K Nearest Neighbour tomek(Undersampling)
Train Accuracy score:  0.7339743589743589
Test Accuracy score:  0.75
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      1.00      0.86        62
           1       0.00      0.00      0.00         8
           2       1.00      0.17      0.29         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.75        84
   macro avg       0.35      0.23      0.23        84
weighted avg       0.62      0.75      0.65        84

SVC Tomek (Undersampling)

In [ ]:
svc_tomek_result=function_model("SVC tomek (Undersampling)",svc, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  SVC tomek (Undersampling)
Train Accuracy score:  0.7211538461538461
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Decision Trees Tomek (Undersampling)

In [ ]:
dt_tomek_result=function_model("Decision Tree tomek (Undersampling)",dt, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Decision Tree tomek (Undersampling)
Train Accuracy score:  0.7371794871794872
Test Accuracy score:  0.7142857142857143
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.97      0.84        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.15      0.19      0.17        84
weighted avg       0.55      0.71      0.62        84

Random Forest (Undersampling)

In [ ]:
rf_tomek_result=function_model("Random Forest tomek (Undersampling)",rf, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Random Forest tomek (Undersampling)
Train Accuracy score:  0.7211538461538461
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Adaboost Tomek Undersampling

In [ ]:
ada_tomek_result=function_model("Ada Boost tomek (Undersampling)",ada_boost, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Ada Boost tomek (Undersampling)
Train Accuracy score:  0.7211538461538461
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Gradient Boosting Tomek (Undersampling)

In [ ]:
gb_tomek_result=function_model("Gradient Boosting tomek (Undersampling)",grad_boost, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Gradient Boosting tomek (Undersampling)
Train Accuracy score:  0.7211538461538461
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

XGB Tomek (Undersampling)

In [ ]:
xgb_tomek_result=function_model("XGB tomek (Undersampling)",xgb_clf, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  XGB tomek (Undersampling)
Train Accuracy score:  0.9967948717948718
Test Accuracy score:  0.7023809523809523
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      0.94      0.83        62
           1       0.00      0.00      0.00         8
           2       0.33      0.17      0.22         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.70        84
   macro avg       0.22      0.22      0.21        84
weighted avg       0.58      0.70      0.63        84

LGBM Tomek (Undersampling)

In [ ]:
lgbm_tomek_result=function_model("Light GBM tomek (Undersampling)",lgbm, X_train_tomek_std, y_train_tomek, X_test_tomek_std, y_test)
Model:  Light GBM tomek (Undersampling)
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.001139 seconds.
You can set `force_col_wise=true` to remove the overhead.
[LightGBM] [Info] Total Bins 21094
[LightGBM] [Info] Number of data points in the train set: 312, number of used features: 226
[LightGBM] [Info] Start training from score -0.326903
[LightGBM] [Info] Start training from score -2.277267
[LightGBM] [Info] Start training from score -2.524127
[LightGBM] [Info] Start training from score -2.564949
[LightGBM] [Info] Start training from score -3.951244
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Train Accuracy score:  0.7211538461538461
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(lr_tomek_result)
all_model_summary=all_model_summary.append(knn_tomek_result)
all_model_summary=all_model_summary.append(svc_tomek_result)
all_model_summary=all_model_summary.append(dt_tomek_result)
all_model_summary=all_model_summary.append(rf_tomek_result)
all_model_summary=all_model_summary.append(ada_tomek_result)
all_model_summary=all_model_summary.append(gb_tomek_result)
all_model_summary=all_model_summary.append(xgb_tomek_result)
all_model_summary=all_model_summary.append(lgbm_tomek_result)


all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63
9 Logistic Regression SMOTE 0.96 0.67 0.65 0.67 0.65
10 K Nearest Neighbour SMOTE 0.82 0.13 0.76 0.13 0.14
11 SVC SMOTE 0.87 0.71 0.54 0.71 0.62
12 Decision Tree SMOTE 0.58 0.07 0.03 0.07 0.04
13 Random Forest SMOTE 0.88 0.42 0.68 0.42 0.49
14 Ada Boost SMOTE 0.64 0.49 0.61 0.49 0.53
15 Gradient Boosting SMOTE 0.94 0.51 0.67 0.51 0.56
16 XGB SMOTE 1.00 0.71 0.68 0.71 0.67
17 Light GBM SMOTE 0.93 0.50 0.68 0.50 0.55
18 Logistic Regression tomek (Undersampling) 0.79 0.75 0.66 0.75 0.67
19 K Nearest Neighbour tomek(Undersampling) 0.73 0.75 0.62 0.75 0.65
20 SVC tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
21 Decision Tree tomek (Undersampling) 0.74 0.71 0.55 0.71 0.62
22 Random Forest tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
23 Ada Boost tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
24 Gradient Boosting tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
25 XGB tomek (Undersampling) 1.00 0.70 0.58 0.70 0.63
26 Light GBM tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')
all_model_summary.to_pickle('dataframe_original_smote_tomek.pickle')

Since after applying Tomek, only few samples of accident level I has been removed, the model accuracy and other parameters are similar to that of model performance on original data.

However, model performance on original data is better than after performing undersampling or oversampling on data

Word2Vec

In [ ]:
word2vec_model_data=basic_model_data.loc[:,:'season_Winter']
In [ ]:
word2vec_model_data.head(1)
Out[ ]:
Accident Level Potential Accident Level Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter
0 0 3 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
In [ ]:
word2vec_model_data.shape
Out[ ]:
(418, 66)
In [ ]:
cleaned_data['clean_description']
Out[ ]:
0      while removing the drill rod of the jumbo for ...
1      during the activation of a sodium sulphide pum...
2      in the substation milpo located at level when ...
3      being am approximately in the nv cx ob the per...
4      approximately at am in circumstances that the ...
                             ...                        
413    being approximately am approximately when lift...
414    the collaborator moved from the infrastructure...
415    during the environmental monitoring activity i...
416    the employee performed the activity of strippi...
417    at am when the assistant cleaned the floor of ...
Name: clean_description, Length: 418, dtype: object
In [ ]:
sentences = [sentence.split() for sentence in cleaned_data['clean_description']]
w2v_model = Word2Vec(sentences, min_count=5, workers=4, vector_size=200)
In [ ]:
words11 = w2v_model.wv.key_to_index
len(words11)
Out[ ]:
759
In [ ]:
len(w2v_model.wv['the'])
Out[ ]:
200
In [ ]:
def vectorize(sentence):
    words = sentence.split()
    words_vecs = [w2v_model.wv[word] for word in words if word in w2v_model.wv]
    if len(words_vecs) == 0:
        return np.zeros(200)
    words_vecs = np.array(words_vecs)
    return words_vecs.mean(axis=0)
In [ ]:
description_word2vec = np.array([vectorize(sentence) for sentence in cleaned_data['clean_description']])
In [ ]:
pd.DataFrame(description_word2vec).shape
Out[ ]:
(418, 200)
In [ ]:
word2vec_model_data=pd.concat([word2vec_model_data, pd.DataFrame(description_word2vec)], axis=1)
word2vec_model_data.columns = word2vec_model_data.columns.astype(str)
In [ ]:
word2vec_model_data.head(1)
Out[ ]:
Accident Level Potential Accident Level Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 0 3 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0.02 0.03 0.12 0.15 0.27 -0.28 0.11 0.32 -0.05 0.24 -0.00 -0.25 -0.02 0.46 -0.19 -0.03 0.00 0.23 -0.16 -0.52 0.15 -0.05 0.15 0.11 0.09 -0.05 0.02 -0.09 -0.28 0.08 0.16 0.04 0.29 -0.12 0.00 0.15 0.17 -0.09 0.03 -0.13 -0.19 0.00 -0.15 0.08 0.34 -0.11 -0.07 -0.22 0.25 0.16 0.08 0.04 -0.23 -0.12 0.05 -0.24 -0.05 -0.23 -0.23 0.07 -0.08 -0.19 -0.02 -0.08 -0.49 0.07 0.07 0.34 -0.33 0.45 -0.06 0.06 0.23 0.00 0.16 0.18 0.34 -0.23 -0.23 -0.08 -0.20 -0.12 -0.19 0.43 -0.26 -0.06 0.09 0.30 -0.01 0.11 0.23 0.23 0.29 0.18 0.39 0.23 0.12 -0.09 0.28 0.00 -0.29 0.49 0.23 -0.14 -0.07 -0.35 0.08 0.40 -0.08 -0.37 -0.04 -0.17 -0.11 -0.10 0.10 -0.10 0.21 -0.42 -0.04 -0.34 0.05 0.32 0.21 -0.13 -0.20 0.17 -0.36 -0.04 -0.03 -0.09 0.38 -0.06 0.08 -0.24 -0.05 0.17 -0.00 -0.15 -0.08 -0.28 0.33 -0.46 -0.14 -0.07 -0.05 -0.25 -0.13 0.07 0.04 0.14 0.19 -0.24 0.05 0.26 -0.46 0.38 0.24 0.21 -0.08 0.02 0.23 0.24 -0.02 -0.06 0.06 0.19 0.22 -0.20 -0.17 0.00 -0.24 0.06 0.01 -0.14 0.17 0.06 -0.33 0.12 0.23 0.25 -0.13 0.04 0.00 0.00 0.20 0.01 0.02 0.14 0.35 0.05 0.21 -0.10 -0.17 -0.31 0.23 0.15 0.18 -0.21 -0.09 -0.08
In [ ]:
word2vec_model_data.shape
Out[ ]:
(418, 266)
In [ ]:
X_w2v=word2vec_model_data.drop(columns=['Accident Level','Potential Accident Level'])
y_w2v=word2vec_model_data[['Accident Level']]
In [ ]:
X_w2v.shape, y_w2v.shape
Out[ ]:
((418, 264), (418, 1))
In [ ]:
X_train, X_test, y_train, y_test = train_test_split(X_w2v, y_w2v, test_size = 0.20, random_state = 42, stratify = y_w2v)
In [ ]:
X_train.shape, y_train.shape
Out[ ]:
((334, 264), (334, 1))
In [ ]:
X_test.shape, y_test.shape
Out[ ]:
((84, 264), (84, 1))
In [ ]:
#normalizing the data
ss_w2v = StandardScaler()

X_train_std= ss_w2v.fit_transform(X_train)

X_test_std = ss_w2v.transform(X_test)
In [ ]:
X_train_std=pd.DataFrame(X_train_std, columns= X_train.columns)
X_test_std=pd.DataFrame(X_test_std, columns= X_test.columns)
In [ ]:
X_train_std
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.68 0.23 -0.61 0.14 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 2.50 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 -1.14 -0.36 0.24 -0.92 2.53 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 4.78 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 -0.35 0.39 0.50 0.92 0.97 0.95 -0.98 0.89 0.90 -0.87 0.91 -2.35 -0.92 -0.26 0.94 -0.91 -1.25 1.68 1.00 -0.85 -0.94 1.01 -0.88 0.73 1.00 0.98 -1.11 0.48 -0.80 -0.94 1.15 1.03 1.16 0.90 -0.93 -0.05 1.00 0.92 -1.04 1.00 -0.95 -1.02 0.89 -0.89 0.90 0.95 -1.21 -0.84 -1.00 0.98 0.90 1.00 0.84 -0.96 -1.02 1.07 -0.89 -0.73 -0.86 -0.87 0.90 -0.85 -0.93 -0.58 -0.81 -0.97 0.77 0.83 0.92 -0.91 0.94 -0.93 0.64 0.96 -0.69 1.00 0.98 0.90 -0.91 -1.01 -0.78 -1.00 -0.84 -0.98 1.00 -0.92 -0.69 0.86 0.99 -0.99 0.80 0.95 0.87 0.91 1.00 0.90 0.88 1.10 -1.08 0.96 -1.46 -0.92 0.97 0.93 -1.01 -1.40 -0.91 0.76 0.88 -0.80 -0.91 -1.07 -0.81 -0.93 -0.93 0.79 -0.98 1.10 -0.96 -1.21 -0.97 0.83 0.99 0.85 -0.92 -0.98 1.02 -0.99 -1.16 -0.38 -0.94 0.97 -0.76 0.90 -0.96 -1.10 0.89 -1.87 -0.98 -1.10 -1.07 0.88 -0.92 -0.84 -1.27 -1.30 -1.08 -1.17 0.78 0.74 0.95 0.90 -0.94 0.43 0.96 -0.94 0.93 0.96 0.89 -1.26 0.44 1.05 0.91 -0.20 -0.71 0.58 0.96 0.97 -1.01 -1.09 -0.11 -0.96 1.02 0.21 -0.98 0.98 0.87 -0.91 0.95 0.91 0.94 -0.92 0.75 0.15 1.67 0.99 0.46 0.11 0.98 0.90 0.97 1.00 -1.00 -0.79 -0.88 0.86 0.85 0.91 -0.86 -1.03 -0.83
1 -0.68 0.85 -1.65 0.72 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 -0.14 -0.67 -0.84 -0.95 -0.91 0.94 -1.10 -0.95 0.80 -0.99 0.10 0.95 1.15 -0.96 1.00 1.32 0.18 -0.90 0.97 0.93 -0.99 0.65 -0.95 -1.08 -0.96 1.24 -1.02 1.03 0.92 -1.02 -0.92 -0.67 -0.93 1.06 -1.51 -0.94 -0.93 0.95 -0.99 0.95 0.89 0.51 1.00 -1.05 -0.94 0.87 0.85 0.95 -0.97 -0.90 -1.01 -1.01 0.90 0.94 -0.88 0.96 0.78 0.94 0.99 -1.16 0.98 0.98 0.72 0.98 0.96 -1.05 -1.03 -0.98 0.98 -0.96 0.92 -0.73 -0.91 1.24 -0.94 -0.89 -0.94 0.90 0.98 1.01 1.01 0.92 0.90 -0.97 0.97 0.93 -0.97 -0.94 1.03 -1.03 -0.96 -0.93 -0.97 -0.92 -0.94 -0.92 -0.92 0.86 -0.94 -0.56 0.95 -0.96 -0.93 0.93 0.88 0.92 -0.94 -0.92 0.99 0.92 1.04 0.99 0.97 1.09 -0.76 0.93 -0.92 0.94 1.37 0.94 -0.78 -0.92 -0.90 0.96 1.02 -0.96 0.93 0.81 1.09 0.81 -0.96 0.88 -0.82 0.95 0.87 -0.94 0.11 0.86 0.65 1.02 -1.00 0.95 0.90 0.93 0.78 0.96 0.92 -0.86 -0.92 -0.94 -0.91 0.94 -0.83 -0.93 0.95 -0.93 -0.91 -0.95 1.00 -1.66 -0.99 -0.94 1.05 1.02 -1.06 -0.92 -0.98 0.96 0.94 -0.47 0.86 -0.74 -0.60 0.89 -0.93 -0.93 0.96 -0.79 -0.96 -0.94 0.95 -0.76 -0.24 0.07 -0.91 0.37 -0.83 -0.98 -0.93 -0.95 -0.94 0.93 0.87 0.95 -0.92 -0.91 -0.91 0.97 0.88 0.88
2 -0.68 0.85 -1.54 0.72 -0.10 -0.66 3.02 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 3.02 -0.05 -0.11 -1.14 2.79 0.24 1.08 -0.39 6.38 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 -0.39 -0.84 2.83 -0.62 0.16 0.32 0.06 0.21 -0.16 0.01 0.17 -0.10 0.18 0.81 -0.11 -0.92 0.13 -0.15 -0.36 -0.47 0.16 -0.05 -0.17 0.07 -0.24 0.18 0.18 0.13 0.02 -0.49 -0.11 -0.12 0.35 0.21 0.38 0.09 -0.08 1.30 0.18 0.02 -0.30 -0.04 -0.20 -0.08 -0.44 -0.12 0.24 0.13 -0.25 0.10 -0.19 0.09 0.19 0.19 0.06 -0.11 -0.09 -0.07 -0.15 0.01 -0.08 -0.10 0.02 -0.35 -0.15 -0.33 -0.13 -0.17 0.04 0.18 0.13 -0.24 0.16 -0.21 0.24 0.15 -0.18 0.12 0.18 0.13 -0.22 -0.20 0.03 -0.21 -0.14 -0.14 0.21 -0.17 0.18 0.25 0.17 -0.82 0.20 0.20 0.15 0.14 0.14 0.14 0.16 0.20 -0.20 0.22 0.34 -0.14 0.15 0.08 -0.16 -0.41 -0.11 -0.14 0.13 -0.21 -0.16 -0.34 -0.08 -0.17 -0.20 0.18 -0.06 0.17 -0.19 -0.33 -0.26 0.30 0.16 0.14 -0.10 -0.13 0.18 -0.18 -0.46 0.06 -0.10 0.18 0.15 0.28 -0.16 -0.14 0.07 -1.79 -0.12 -0.26 -0.20 0.18 -0.18 -0.17 -0.06 -0.23 -0.22 -0.22 0.09 0.58 0.20 0.15 -0.15 0.24 0.21 -0.13 0.18 0.12 0.15 -0.46 0.40 0.22 0.21 0.26 0.05 0.12 0.17 0.20 -0.17 -0.09 -0.27 -0.11 0.04 -1.15 -0.16 0.15 0.15 -0.15 0.10 0.15 0.09 -0.09 0.08 1.04 1.06 0.24 0.68 0.14 0.28 0.17 0.12 0.16 -0.26 -0.13 -0.14 0.13 0.14 0.11 -0.17 -0.30 -0.06
3 -0.68 1.79 1.46 1.93 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 2.53 -0.84 -0.35 0.04 -0.08 0.41 0.47 0.32 -0.29 0.28 0.30 0.02 0.33 -1.88 -0.28 -0.80 0.33 -0.43 -0.54 -0.52 0.31 -0.36 -0.34 0.30 -0.56 0.28 0.11 0.33 -0.49 0.08 -0.37 -0.31 0.31 0.19 0.17 0.33 -0.40 0.07 0.39 0.39 -0.26 1.04 -0.10 -0.40 1.91 -0.33 0.22 0.37 -0.21 -0.28 -0.26 0.30 0.28 0.50 0.17 -0.28 -0.36 0.33 -0.26 -0.23 -0.35 -0.38 0.04 -0.29 -0.36 -0.26 -0.48 -0.29 0.39 0.42 0.39 -0.32 0.35 -0.34 0.48 0.35 -1.14 0.49 0.26 0.29 -0.31 -0.31 -0.54 -0.30 -0.49 -0.40 0.34 -0.35 -0.50 0.34 0.31 -0.06 0.08 0.34 0.38 0.33 0.32 0.40 0.31 0.30 -0.24 0.33 -0.30 -0.30 0.32 0.31 -0.27 -0.32 -0.37 0.08 0.29 -0.32 -0.32 -0.08 -0.45 -0.26 -0.23 0.18 -0.28 0.36 -0.31 0.04 -0.28 0.35 0.34 0.28 -0.20 -0.34 0.38 -0.26 -0.36 -0.58 -0.46 0.33 -0.70 0.32 -0.37 -0.97 0.36 1.21 -0.36 -0.15 -0.37 0.33 -0.35 -0.40 -0.32 0.08 -0.32 -0.25 0.31 -0.32 0.16 0.35 -0.29 0.39 0.32 -0.33 0.28 0.33 0.23 -0.07 1.11 0.26 0.23 0.40 -0.46 0.62 0.22 0.32 -0.40 -0.32 0.71 -0.34 0.08 0.95 -0.30 0.40 0.36 -0.37 0.39 0.37 0.29 -0.34 0.41 -1.34 -0.86 0.32 -0.33 1.45 0.42 0.28 0.54 0.20 -0.16 -0.29 -0.30 0.32 0.40 0.32 -0.30 -0.03 -0.45
4 -0.68 -0.09 1.11 0.00 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 -0.92 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 -0.39 -0.84 -0.35 -0.31 -1.25 -1.19 -1.26 -1.20 1.15 -1.18 -1.16 1.10 -1.18 0.65 1.18 1.07 -1.19 1.18 0.69 0.33 -1.19 1.10 1.21 -1.20 1.20 -1.24 -1.36 -1.32 1.24 -0.89 1.24 1.13 -1.18 -1.23 -1.32 -1.16 1.07 -1.15 -1.30 -1.23 1.11 -0.92 1.21 1.14 1.09 1.14 -1.19 -1.25 1.41 1.21 1.24 -1.23 -1.21 -1.14 -1.66 1.20 1.16 -1.17 1.19 1.28 1.23 1.20 -0.95 1.14 1.16 1.17 1.08 1.22 -0.99 -0.97 -1.19 1.17 -1.23 1.29 -0.96 -1.22 -0.26 -1.26 -1.18 -1.22 1.18 1.20 1.08 1.24 1.40 1.19 -1.20 1.16 1.17 -1.19 -1.21 0.36 -1.18 -1.27 -1.14 -1.18 -1.25 -1.20 -1.19 -1.14 1.18 -1.22 0.84 1.17 -1.16 -1.14 1.33 1.39 1.20 -1.22 -1.15 1.09 1.19 1.07 1.24 1.23 1.29 -1.16 1.27 -1.21 1.26 1.20 1.20 -1.33 -1.24 -1.14 1.20 1.18 -1.26 1.21 1.54 1.27 1.20 -1.26 1.17 -1.17 1.21 1.29 -1.21 0.44 1.28 1.12 1.27 -1.17 1.19 1.23 1.33 1.28 1.20 1.13 -1.31 -1.09 -1.21 -1.15 1.18 -0.83 -1.20 1.19 -1.18 -1.19 -1.15 1.16 -0.79 -1.19 -1.15 0.85 1.09 -1.11 -1.27 -1.15 1.34 1.18 -0.78 1.21 -1.38 -0.84 1.21 -1.15 -1.25 1.24 -1.11 -1.23 -1.25 1.09 -1.31 -0.67 -0.49 -1.23 -2.30 -0.65 -1.26 -1.17 -1.30 -1.23 1.18 1.23 1.21 -1.17 -1.09 -1.11 1.18 1.30 1.08
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
329 -0.68 0.54 -0.61 0.43 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 2.97 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 -1.79 -1.65 -1.63 -1.54 -1.68 1.67 -1.65 -1.66 1.57 -1.69 0.18 1.68 1.48 -1.65 1.63 1.49 0.41 -1.64 1.73 1.65 -1.65 1.29 -1.69 -1.62 -1.66 1.52 -1.63 1.63 1.63 -1.83 -1.71 -1.22 -1.69 1.53 -0.20 -1.68 -1.59 1.54 -1.47 1.62 1.61 0.17 1.70 -1.79 -1.61 1.61 1.37 1.69 -1.65 -1.72 -1.66 -1.47 1.67 1.69 -1.60 1.61 1.59 1.59 1.67 -1.67 1.53 1.62 1.12 1.56 1.66 -1.64 -1.58 -1.63 1.66 -1.64 1.59 -1.51 -1.70 0.01 -1.63 -1.67 -1.66 1.65 1.70 1.57 1.71 1.55 1.64 -1.69 1.65 1.56 -1.58 -1.65 1.70 -1.66 -1.64 -1.65 -1.71 -1.65 -1.66 -1.63 -1.59 1.60 -1.64 -0.26 1.65 -1.68 -1.58 1.71 1.84 1.66 -1.54 -1.68 1.54 1.67 1.43 1.63 1.72 1.66 -1.75 1.54 -1.69 1.69 1.51 1.68 -1.58 -1.65 -1.68 1.64 1.65 -1.68 1.68 1.27 1.32 1.63 -1.65 1.61 -1.54 1.63 1.48 -1.60 -0.34 1.70 1.60 1.63 -1.68 1.65 1.57 1.56 1.69 1.63 1.61 -1.58 -1.62 -1.77 -1.66 1.62 -1.44 -1.66 1.66 -1.64 -1.73 -1.67 1.62 -1.51 -1.66 -1.67 1.29 1.34 -1.57 -1.64 -1.67 1.63 1.67 -1.11 1.62 -1.49 -0.73 1.61 -1.61 -1.42 1.65 -1.64 -1.65 -1.66 1.57 -1.70 -1.79 -2.51 -1.74 -1.61 -0.38 -1.67 -1.67 -1.65 -1.64 1.71 1.63 1.68 -1.67 -1.64 -1.63 1.70 1.72 1.61
330 -0.68 -1.02 -0.73 -1.07 -0.10 -0.66 -0.33 -0.24 1.87 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 2.20 -0.42 -0.39 1.19 -0.35 0.59 0.31 0.28 0.25 0.24 -0.26 0.35 0.24 -0.02 0.27 0.45 -0.27 -0.27 0.29 -0.26 -0.14 0.08 0.25 -0.26 -0.27 0.23 -0.25 0.36 0.35 0.26 -0.44 -0.10 -0.28 -0.29 0.24 0.29 0.55 0.29 -0.29 -0.19 0.23 0.28 -0.20 0.15 -0.35 -0.27 -0.08 -0.29 0.23 0.26 -0.26 -0.31 -0.30 0.32 0.30 0.16 0.28 -0.31 -0.24 0.14 -0.29 -0.10 -0.29 -0.34 0.21 -0.20 -0.28 -0.32 -0.34 -0.27 0.21 0.07 0.26 -0.26 0.27 -0.14 0.25 0.23 1.06 0.31 0.20 0.30 -0.24 -0.26 -0.35 -0.25 -0.28 -0.24 0.25 -0.30 -0.28 0.20 0.31 -0.31 0.35 0.26 0.26 0.22 0.24 0.23 0.24 0.33 -0.34 0.25 0.99 -0.24 0.25 0.28 -0.31 -0.24 -0.23 0.28 0.28 -0.40 -0.30 -0.52 -0.32 -0.29 -0.23 0.21 -0.38 0.26 -0.26 -0.06 -0.31 0.27 0.26 0.25 -0.34 -0.18 0.32 -0.28 -0.30 -0.27 -0.28 0.27 -0.14 0.13 -0.30 -0.27 0.25 0.34 -0.31 -0.27 -0.32 0.33 -0.34 -0.34 -0.27 -0.08 -0.31 -0.30 0.12 0.35 0.21 0.33 -0.28 0.32 0.36 -0.31 0.28 0.29 0.31 -0.39 -0.47 0.25 0.25 -0.90 -0.17 0.14 0.30 0.29 -0.32 -0.23 0.29 -0.28 0.48 0.70 -0.34 0.28 0.11 -0.27 0.15 0.33 0.32 -0.21 0.10 -0.55 -2.16 0.31 0.57 0.25 0.24 0.27 0.44 0.34 -0.35 -0.24 -0.31 0.29 0.34 0.34 -0.27 -0.40 -0.30
331 -0.68 -0.71 0.08 -0.71 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 2.36 -0.39 1.19 -0.35 0.79 -0.08 -0.18 0.08 -0.16 0.12 0.39 -0.06 0.11 -0.02 0.21 -0.04 0.80 -0.02 -0.05 0.08 1.38 0.03 -0.14 0.00 0.13 0.74 0.15 0.05 0.18 -0.14 0.80 0.08 -0.00 -0.04 -0.08 0.10 0.11 -0.30 -0.82 -0.03 0.05 -0.15 -0.61 0.07 -0.12 -0.11 0.13 -0.30 -0.03 0.22 -0.51 0.03 0.01 -0.08 -0.08 -0.17 -0.09 -0.02 -0.09 -0.04 -0.11 -0.07 -0.12 0.37 0.43 0.00 0.11 -0.01 0.00 0.24 -0.22 -0.03 0.01 -0.01 0.15 -0.02 0.03 0.48 -0.01 -0.02 0.06 0.11 -0.07 0.17 0.00 0.04 0.08 -0.02 -0.13 -0.27 -0.03 -0.08 -0.74 0.23 -0.02 0.00 0.06 -0.11 0.01 -0.01 -0.22 -0.28 -0.02 1.98 -0.12 -0.04 0.02 -0.03 0.66 -0.10 0.03 0.02 0.15 -0.07 0.88 -0.19 0.13 0.34 0.07 0.13 -0.01 0.03 0.21 0.12 -0.17 -0.01 0.05 -0.07 0.09 0.06 0.00 0.62 -0.39 -0.00 -0.03 0.11 -0.17 0.02 -0.03 -0.02 1.78 -0.07 0.20 0.10 -0.00 -0.00 0.12 -0.22 0.41 0.08 0.02 0.33 0.24 -0.25 0.13 0.08 0.29 -0.03 0.03 0.02 0.02 0.04 0.27 -0.52 -0.06 0.03 -0.17 -0.11 0.21 0.07 0.03 -0.04 0.11 1.96 0.05 -0.07 0.41 0.20 -0.11 -0.01 0.00 -0.20 0.06 0.03 -0.15 0.45 -0.80 1.21 -0.17 1.36 0.18 -0.19 -0.04 -0.32 -0.01 0.16 -0.06 0.05 -0.03 0.03 0.02 -0.03 -0.20 -0.05
332 -0.68 2.11 -0.61 2.00 -0.10 -0.66 -0.33 -0.24 -0.53 2.67 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 2.50 -0.34 -0.46 -0.45 -0.42 -0.39 1.19 -0.35 -1.17 -0.52 -0.69 -0.80 -0.70 0.71 -0.84 -0.77 0.73 -0.73 1.08 0.75 1.51 -0.76 0.78 0.65 -1.20 -0.75 0.84 0.73 -0.83 0.43 -0.73 -0.81 -0.89 0.65 -0.45 0.55 0.73 -0.88 -0.65 -0.57 -0.75 0.79 1.04 -0.74 -0.71 0.71 -0.61 0.78 0.74 -1.19 0.81 -0.65 -0.75 0.70 0.97 0.73 -0.69 -0.82 -0.70 -0.59 0.73 0.79 -0.99 0.81 0.77 0.78 0.73 -0.87 0.72 0.72 0.61 0.94 0.73 -0.85 -0.74 -0.76 0.73 -0.73 0.60 -0.93 -0.71 1.14 -0.84 -0.68 -0.76 0.78 0.74 0.78 0.81 0.74 0.72 -0.74 0.76 0.85 -0.81 -0.73 1.66 -0.77 -0.76 -0.76 -0.76 -0.67 -0.77 -0.73 -0.65 0.66 -0.74 -2.39 0.76 -0.75 -0.80 0.65 0.42 0.73 -0.82 -0.75 0.76 0.75 0.77 0.81 0.79 0.71 -0.87 0.64 -0.72 0.72 0.75 0.74 -0.68 -0.74 -0.73 0.77 0.71 -0.81 0.71 0.77 0.98 0.71 -0.76 0.89 -0.89 0.76 0.67 -0.62 -1.00 0.68 0.32 0.70 -0.78 0.75 0.73 0.66 0.75 0.69 0.80 -0.80 -1.02 -0.75 -0.78 0.77 -0.80 -0.72 0.74 -0.75 -0.84 -0.82 0.61 -1.36 -0.67 -0.75 1.28 0.85 -0.73 -0.72 -0.70 0.72 0.68 -1.08 0.73 -0.59 -1.40 0.69 -0.73 -0.68 0.76 -0.69 -0.76 -0.69 0.84 -0.63 -0.50 0.22 -0.71 -0.33 -0.57 -0.67 -0.73 -0.53 -0.74 0.67 0.78 0.79 -0.70 -0.86 -0.82 0.75 0.81 0.63
333 -0.68 0.85 -0.04 0.86 -0.10 -0.66 -0.33 -0.24 -0.53 -0.37 -0.40 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 0.88 -0.36 0.24 1.08 -0.39 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 -0.21 0.89 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 2.71 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 2.83 0.37 0.43 0.45 0.40 0.36 -0.40 0.45 0.41 -0.39 0.46 -0.29 -0.40 -0.19 0.40 -0.41 -0.32 -0.33 0.38 -0.51 -0.41 0.39 -0.26 0.40 0.45 0.43 -0.35 0.69 -0.39 -0.43 0.35 0.37 0.44 0.43 -0.49 -0.38 0.36 0.43 -0.43 0.53 -0.44 -0.42 0.80 -0.50 0.53 0.41 -0.33 -0.52 -0.39 0.40 0.35 0.52 0.41 -0.45 -0.38 0.33 -0.42 -0.49 -0.41 -0.46 0.47 -0.40 -0.44 -0.94 -0.45 -0.38 0.50 0.40 0.43 -0.40 0.42 -0.48 0.32 0.41 -1.06 0.38 0.43 0.44 -0.43 -0.40 -0.58 -0.44 -0.33 -0.41 0.41 -0.45 -0.38 0.42 0.40 -0.02 0.47 0.43 0.44 0.44 0.49 0.42 0.40 0.33 -0.44 0.40 -0.10 -0.42 0.43 0.42 -0.41 -0.36 -0.41 0.39 0.45 -0.49 -0.42 -0.46 -0.48 -0.35 -0.41 0.43 -0.39 0.37 -0.39 -0.34 -0.37 0.48 0.36 0.42 -0.53 -0.40 0.46 -0.42 -0.58 -0.57 -0.35 0.42 -0.53 0.37 -0.45 -0.34 0.39 0.27 -0.34 -0.25 -0.39 0.45 -0.42 -0.38 -0.37 -0.26 -0.35 -0.42 0.38 0.54 0.33 0.41 -0.42 0.50 0.45 -0.43 0.41 0.45 0.41 -0.35 0.35 0.40 0.42 -0.55 -0.47 0.61 0.44 0.44 -0.40 -0.37 0.33 -0.43 0.28 0.82 -0.36 0.39 0.40 -0.42 0.38 0.46 0.44 -0.42 0.49 0.02 -0.46 0.34 0.20 1.25 0.39 0.39 0.31 0.39 -0.35 -0.44 -0.46 0.42 0.49 0.41 -0.46 -0.43 -0.48

334 rows × 264 columns

In [ ]:
all_model_summary=pd.read_pickle('dataframe.pickle')
In [ ]:
lr= LogisticRegression(C=.01,solver='lbfgs', multi_class='multinomial', random_state = 42)
lr_word2vec_result=function_model("Logistic Regression word2vec",lr, X_train_std, y_train, X_test_std, y_test)
Model:  Logistic Regression word2vec
Train Accuracy score:  0.7544910179640718
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
knn=KNeighborsClassifier(n_neighbors=9, metric='minkowski', p=1, weights='uniform', n_jobs=-1)
knn_word2vec_result=function_model("K Nearest Neighbour word2vec",knn,X_train_std, y_train, X_test_std, y_test)
Model:  K Nearest Neighbour word2vec
Train Accuracy score:  0.7425149700598802
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
svc=svm.SVC(C=.1, degree=2, gamma=.01, kernel='rbf', random_state=42)
svc_word2vec_result=function_model("SVC word2vec",svc, X_train_std, y_train, X_test_std, y_test)
Model:  SVC word2vec
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
dt=DecisionTreeClassifier(criterion='entropy', random_state=42, max_depth=3, min_samples_leaf=10, min_samples_split=3)
dt_word2vec_result=function_model("Decision Tree word2vec",dt, X_train_std, y_train, X_test_std, y_test)
Model:  Decision Tree word2vec
Train Accuracy score:  0.7574850299401198
Test Accuracy score:  0.7142857142857143
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.77      0.95      0.85        62
           1       0.20      0.12      0.15         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.19      0.22      0.20        84
weighted avg       0.58      0.71      0.64        84

In [ ]:
rf=RandomForestClassifier(criterion='gini', random_state=42, max_depth=4, min_samples_leaf=3, min_samples_split=15, n_estimators=100, max_features='sqrt')
rf_word2vec_result=function_model("Random Forest word2vec",rf, X_train_std, y_train, X_test_std, y_test)
Model:  Random Forest word2vec
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
ada_boost= AdaBoostClassifier(random_state=42, n_estimators=75, learning_rate=.1)
ada_word2vec_result=function_model("Ada Boost word2vec",ada_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Ada Boost word2vec
Train Accuracy score:  0.7425149700598802
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
grad_boost= GradientBoostingClassifier(random_state=42, n_estimators=50, learning_rate=.01, max_depth=3, max_features='auto', subsample=.5)
gb_word2vec_result=function_model("Gradient Boosting word2vec",grad_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Gradient Boosting word2vec
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
xgb_clf = xgb.XGBClassifier(booster='gbtree', learning_rate=.1, max_depth=6, n_estimator=50, sampling_method='uniform', reg_alpha=.7, reg_lambda=.7)
xgb_word2vec_result=function_model("XGB word2vec",xgb_clf, X_train_std, y_train, X_test_std, y_test)
Model:  XGB word2vec
Train Accuracy score:  0.9970059880239521
Test Accuracy score:  0.7261904761904762
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.73        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.55      0.73      0.63        84

In [ ]:
lgbm = LGBMClassifier(colsample_bytree=.8, learning_rate=.01, max_depth=3, n_estimators=50, reg_alpha=.5, reg_lambda=.5)
lgbm_word2vec_result=function_model("Light GBM word2vec",lgbm, X_train_std, y_train, X_test_std, y_test)
Model:  Light GBM word2vec
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.001847 seconds.
You can set `force_col_wise=true` to remove the overhead.
[LightGBM] [Info] Total Bins 22578
[LightGBM] [Info] Number of data points in the train set: 334, number of used features: 226
[LightGBM] [Info] Start training from score -0.301753
[LightGBM] [Info] Start training from score -2.345405
[LightGBM] [Info] Start training from score -2.592265
[LightGBM] [Info] Start training from score -2.633087
[LightGBM] [Info] Start training from score -4.019382
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(lr_word2vec_result)
all_model_summary=all_model_summary.append(knn_word2vec_result)
all_model_summary=all_model_summary.append(svc_word2vec_result)
all_model_summary=all_model_summary.append(dt_word2vec_result)
all_model_summary=all_model_summary.append(rf_word2vec_result)
all_model_summary=all_model_summary.append(ada_word2vec_result)
all_model_summary=all_model_summary.append(gb_word2vec_result)
all_model_summary=all_model_summary.append(xgb_word2vec_result)
all_model_summary=all_model_summary.append(lgbm_word2vec_result)

all_model_summary.reset_index(drop=True, inplace=True)
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63
9 Logistic Regression SMOTE 0.96 0.67 0.65 0.67 0.65
10 K Nearest Neighbour SMOTE 0.82 0.13 0.76 0.13 0.14
11 SVC SMOTE 0.87 0.71 0.54 0.71 0.62
12 Decision Tree SMOTE 0.58 0.07 0.03 0.07 0.04
13 Random Forest SMOTE 0.88 0.42 0.68 0.42 0.49
14 Ada Boost SMOTE 0.64 0.49 0.61 0.49 0.53
15 Gradient Boosting SMOTE 0.94 0.51 0.67 0.51 0.56
16 XGB SMOTE 1.00 0.71 0.68 0.71 0.67
17 Light GBM SMOTE 0.93 0.50 0.68 0.50 0.55
18 Logistic Regression tomek (Undersampling) 0.79 0.75 0.66 0.75 0.67
19 K Nearest Neighbour tomek(Undersampling) 0.73 0.75 0.62 0.75 0.65
20 SVC tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
21 Decision Tree tomek (Undersampling) 0.74 0.71 0.55 0.71 0.62
22 Random Forest tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
23 Ada Boost tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
24 Gradient Boosting tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
25 XGB tomek (Undersampling) 1.00 0.70 0.58 0.70 0.63
26 Light GBM tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
27 Logistic Regression word2vec 0.75 0.74 0.54 0.74 0.63
28 K Nearest Neighbour word2vec 0.74 0.74 0.54 0.74 0.63
29 SVC word2vec 0.74 0.74 0.54 0.74 0.63
30 Decision Tree word2vec 0.76 0.71 0.58 0.71 0.64
31 Random Forest word2vec 0.74 0.74 0.54 0.74 0.63
32 Ada Boost word2vec 0.74 0.74 0.54 0.74 0.63
33 Gradient Boosting word2vec 0.74 0.74 0.54 0.74 0.63
34 XGB word2vec 1.00 0.73 0.55 0.73 0.63
35 Light GBM word2vec 0.74 0.74 0.54 0.74 0.63
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')
all_model_summary.to_pickle('dataframe_original_smote_tomek_word2vec.pickle')

TF IDF

In [ ]:
from sklearn.feature_extraction.text import TfidfVectorizer
In [ ]:
tfidf_model_data=basic_model_data.loc[:,:'season_Winter']
In [ ]:
tfidf_model_data.shape
Out[ ]:
(418, 66)
In [ ]:
tfidf_model_data.head(1)
Out[ ]:
Accident Level Potential Accident Level Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter
0 0 3 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
In [ ]:
#creating tfidf vectors
vectorizer = TfidfVectorizer(max_features = 200)
In [ ]:
# fit and transforming into vectors from the text data
tf_vectors = vectorizer.fit_transform(cleaned_data['clean_description']).toarray()
In [ ]:
# get indexing
print('\nWord indexes:')
print(vectorizer.vocabulary_)

# tf-idf values
print('\ntf-idf values:')
print(tf_vectors)
Word indexes:
{'while': 194, 'the': 164, 'drill': 49, 'of': 125, 'for': 68, 'maintenance': 108, 'to': 173, 'support': 160, 'this': 170, 'mechanic': 110, 'one': 128, 'end': 56, 'on': 127, 'equipment': 57, 'with': 196, 'both': 29, 'bar': 22, 'and': 12, 'from': 70, 'at': 20, 'moment': 115, 'its': 97, 'point': 142, 'between': 27, 'drilling': 50, 'during': 52, 'pump': 146, 'was': 186, 'in': 90, 'area': 16, 'immediately': 88, 'made': 107, 'use': 182, 'level': 103, 'when': 191, 'collaborator': 41, 'work': 197, 'hand': 77, 'hitting': 85, 'rock': 153, 'part': 133, 'it': 96, 'off': 126, 'safety': 154, 'then': 167, 'left': 101, 'foot': 67, 'causing': 36, 'injury': 92, 'being': 25, 'am': 10, 'approximately': 15, 'nv': 124, 'they': 169, 'were': 190, 'bolt': 28, 'that': 163, 'head': 79, 'mr': 120, 'assistant': 19, 'platform': 140, 'pressure': 144, 'key': 98, 'out': 131, 'moments': 116, 'two': 179, 'circumstances': 38, 'company': 42, 'performed': 134, 'cm': 40, 'weight': 189, 'kg': 99, 'as': 18, 'falls': 62, 'meters': 114, 'hits': 84, 'right': 152, 'worker': 198, 'described': 46, 'there': 168, 'truck': 176, 'performing': 135, 'hose': 87, 'caused': 35, 'reports': 151, 'he': 78, 'his': 82, 'ground': 75, 'small': 157, 'pm': 141, 'technician': 162, 'acid': 3, 'their': 165, 'which': 193, 'finger': 64, 'employee': 54, 'falling': 61, 'face': 59, 'operator': 129, 'front': 71, 'ladder': 100, 'height': 80, 'pipe': 137, 'cleaning': 39, 'medical': 111, 'center': 37, 'is': 95, 'inside': 93, 'side': 156, 'workers': 199, 'generating': 73, 'moving': 119, 'water': 187, 'leg': 102, 'after': 6, 'event': 58, 'first': 65, 'same': 155, 'material': 109, 'projected': 145, 'towards': 175, 'remove': 150, 'contact': 43, 'due': 51, 'using': 184, 'air': 8, 'by': 31, 'fall': 60, 'all': 9, 'hit': 83, 'where': 192, 'injured': 91, 'tube': 178, 'other': 130, 'position': 143, 'upper': 181, 'against': 7, 'who': 195, 'an': 11, 'piece': 136, 'impacting': 89, 'cut': 44, 'about': 0, 'loading': 106, 'approx': 14, 'top': 174, 'structure': 159, 'so': 158, 'place': 138, 'released': 149, 'gloves': 74, 'floor': 66, 'not': 123, 'access': 1, 'loader': 105, 'mesh': 112, 'them': 166, 'under': 180, 'line': 104, 'time': 172, 'fragment': 69, 'carried': 34, 'metal': 113, 'back': 21, 'came': 32, 'employees': 55, 'no': 122, 'him': 81, 'accident': 2, 'but': 30, 'did': 48, 'team': 161, 'moved': 117, 'diameter': 47, 'wearing': 188, 'activity': 5, 'movement': 118, 'had': 76, 'be': 24, 'near': 121, 'cutting': 45, 'base': 23, 'another': 13, 'through': 171, 'into': 94, 'arm': 17, 'edge': 53, 'car': 33, 'over': 132, 'gable': 72, 'used': 183, 'reaching': 147, 'belt': 26, 'trying': 177, 'activities': 4, 'vehicle': 185, 'plate': 139, 'hopper': 86, 'field': 63, 'reaction': 148}

tf-idf values:
[[0.       0.       0.       ... 0.       0.       0.      ]
 [0.       0.       0.       ... 0.       0.       0.      ]
 [0.       0.       0.       ... 0.142371 0.       0.      ]
 ...
 [0.       0.       0.       ... 0.       0.       0.      ]
 [0.       0.       0.       ... 0.       0.       0.      ]
 [0.       0.       0.       ... 0.       0.       0.      ]]
In [ ]:
pd.DataFrame(tf_vectors)
Out[ ]:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.05 0.00 0.45 0.00 0.00 0.00 0.00 0.10 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.26 0.13 0.00 0.00 0.00 0.00 0.00 0.12 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.26 0.00 0.00 0.00 0.00 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.21 0.00 0.06 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.54 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.06 0.00 0.00 0.00
1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.25 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.23 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.27 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.56 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.00 0.32 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.07 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.10 0.00 0.00 0.00 0.00 0.30 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.19 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.38 0.00 0.00 0.00 0.00 0.07 0.00 0.12 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.00 0.11 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 0.21 0.00 0.00 0.00 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.16 0.16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.56 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.00 0.19 0.14 0.00 0.00
3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.00 0.42 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.07 0.00 0.00 0.00 0.00 0.00 0.00 0.14 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.19 0.00 0.08 0.00 0.00 0.00 0.07 0.00 0.29 0.00 0.00 0.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.14 0.18 0.00 0.06 0.00 0.00 0.00 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.06 0.54 0.00 0.00 0.00 0.00 0.26 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.05 0.00 0.00 0.00 0.11 0.06 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00
4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.17 0.00 0.00 0.13 0.00 0.00 0.15 0.00 0.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.14 0.00 0.30 0.00 0.16 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.16 0.00 0.00 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.10 0.00 0.00 0.00 0.27 0.00 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.37 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.16 0.00 0.00 0.00 0.00 0.00 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.07 0.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.06 0.00 0.00 0.16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
413 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.21 0.00 0.00 0.23 0.00 0.00 0.00 0.00 0.42 0.00 0.00 0.00 0.21 0.00 0.00 0.00 0.00 0.00 0.21 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.23 0.00 0.00 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.09 0.00 0.16 0.00 0.00 0.33 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.07 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.52 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.09 0.00 0.23 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
414 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.29 0.00 0.00 0.00 0.00 0.22 0.00 0.00 0.00 0.00 0.24 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.30 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.17 0.00 0.00 0.19 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.29 0.00 0.00 0.00 0.00 0.00 0.23 0.00 0.16 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.59 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.19 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
415 0.00 0.00 0.00 0.00 0.00 0.16 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.32 0.00 0.14 0.00 0.00 0.00 0.00 0.21 0.00 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.26 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.21 0.00 0.00 0.19 0.00 0.25 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.57 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 0.00 0.00 0.00 0.00 0.00 0.00 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
416 0.00 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.31 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.27 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.17 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.00 0.00 0.00 0.00 0.29 0.26 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.25 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.26 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.39 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
417 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.27 0.00 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.24 0.13 0.27 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.24 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.30 0.00 0.00 0.00 0.00 0.47 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.30 0.00 0.10 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.45 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

418 rows × 200 columns

In [ ]:
tfidf_model_data=pd.concat([tfidf_model_data, pd.DataFrame(tf_vectors)], axis=1)
tfidf_model_data.columns = tfidf_model_data.columns.astype(str)
In [ ]:
tfidf_model_data.shape
Out[ ]:
(418, 266)
In [ ]:
tfidf_model_data.head(1)
Out[ ]:
Accident Level Potential Accident Level Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 0 3 2016 1 1 53 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.05 0.00 0.45 0.00 0.00 0.00 0.00 0.10 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.26 0.13 0.00 0.00 0.00 0.00 0.00 0.12 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.08 0.00 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.26 0.00 0.00 0.00 0.00 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.21 0.00 0.06 0.09 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.54 0.00 0.00 0.00 0.00 0.00 0.28 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.11 0.00 0.06 0.00 0.00 0.00
In [ ]:
X_tfidf=tfidf_model_data.drop(columns=['Accident Level','Potential Accident Level'])
y_tfidf=tfidf_model_data[['Accident Level']]
In [ ]:
X_tfidf.shape, y_tfidf.shape
Out[ ]:
((418, 264), (418, 1))
In [ ]:
X_train, X_test, y_train, y_test = train_test_split(X_tfidf, y_tfidf, test_size = 0.20, random_state = 42, stratify = y_tfidf)
In [ ]:
#normalizing the data
ss_tfidf = StandardScaler()
X_train_std= ss_tfidf.fit_transform(X_train)
X_test_std = ss_tfidf.transform(X_test)

X_train_std=pd.DataFrame(X_train_std, columns= X_train.columns)
X_test_std=pd.DataFrame(X_test_std, columns= X_test.columns)
In [ ]:
X_train_std.head(1)
Out[ ]:
Year Month Day WeekofYear is_holiday Country_Country_02 Country_Country_03 Local_Local_02 Local_Local_03 Local_Local_04 Local_Local_05 Local_Local_06 Local_Local_07 Local_Local_08 Local_Local_09 Local_Local_10 Local_Local_11 Local_Local_12 Industry Sector_Mining Industry Sector_Others Gender_Male Employee Type_Third Party Employee Type_Third Party (Remote) Critical Risk_Bees Critical Risk_Blocking and isolation of energies Critical Risk_Burn Critical Risk_Chemical substances Critical Risk_Confined space Critical Risk_Cut Critical Risk_Electrical Shock Critical Risk_Electrical installation Critical Risk_Fall Critical Risk_Fall prevention Critical Risk_Fall prevention (same level) Critical Risk_Individual protection equipment Critical Risk_Liquid Metal Critical Risk_Machine Protection Critical Risk_Manual Tools Critical Risk_Others Critical Risk_Plates Critical Risk_Poll Critical Risk_Power lock Critical Risk_Pressed Critical Risk_Pressurized Systems Critical Risk_Pressurized Systems / Chemical Substances Critical Risk_Projection Critical Risk_Projection of fragments Critical Risk_Projection/Burning Critical Risk_Projection/Choco Critical Risk_Projection/Manual Tools Critical Risk_Suspended Loads Critical Risk_Traffic Critical Risk_Vehicles and Mobile Equipment Critical Risk_Venomous Animals Critical Risk_remains of choco Weekday_Monday Weekday_Saturday Weekday_Sunday Weekday_Thursday Weekday_Tuesday Weekday_Wednesday season_Spring season_Summer season_Winter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
0 -0.68 0.23 -0.61 0.14 -0.10 1.52 -0.33 -0.24 -0.53 -0.37 2.50 -0.36 -0.18 -0.26 -0.08 -0.33 -0.05 -0.11 -1.14 -0.36 0.24 -0.92 2.53 -0.16 -0.08 -0.05 -0.21 -0.05 -0.18 -0.05 -0.05 -0.17 -0.14 -0.12 -0.05 -0.08 -0.05 4.78 -1.13 0.00 -0.05 -0.10 -0.22 -0.14 -0.10 -0.18 -0.05 -0.05 -0.05 0.00 -0.14 -0.05 -0.16 -0.17 -0.11 -0.37 -0.40 -0.34 -0.46 -0.45 -0.42 -0.39 -0.84 -0.35 -0.21 -0.27 -0.41 -0.19 -0.22 -0.46 -0.32 -0.32 -0.17 -0.19 -0.25 -0.38 -1.16 -0.19 -0.17 -0.33 -0.39 -0.22 -0.28 -0.32 -0.88 -0.25 -0.15 -0.18 -0.24 -0.31 -0.18 -0.34 -0.16 -0.22 -0.19 -0.54 -0.21 -0.14 -0.22 -0.19 1.31 -0.23 -0.29 -0.25 -0.25 -0.36 -0.22 -0.21 -0.25 -0.17 -0.33 -0.20 -0.20 -0.21 -0.18 -0.20 -0.48 -0.22 1.05 -0.22 -0.19 2.51 -0.20 -0.28 -0.21 -0.20 -0.27 -0.17 -0.37 -0.16 -0.31 -0.25 -0.46 -0.21 -0.59 -0.23 -0.22 -0.28 -0.31 -0.22 -0.28 -0.60 1.16 -0.16 -0.34 -0.19 2.11 -0.29 -0.24 -0.22 -0.14 -0.20 -0.21 -0.24 -1.04 -0.26 2.31 -0.22 -0.20 -0.47 -0.58 -0.22 -0.18 -0.31 -0.19 1.48 8.04 -0.39 -0.19 -0.15 -0.18 -0.26 -0.25 -0.16 -0.17 -0.30 -0.23 3.76 -0.32 -0.43 -0.24 -0.18 -0.19 -0.23 -0.29 5.15 -0.29 -0.34 -0.18 -0.44 -0.20 -0.75 -0.38 -0.45 -0.18 -0.37 -0.16 -0.26 -0.25 -0.25 5.63 -0.26 -0.27 -0.19 -0.22 -0.23 -0.24 -0.20 -0.17 5.60 -0.22 -0.21 -0.16 -0.22 -0.26 2.90 -0.63 -0.34 -0.34 -0.23 -0.29 -0.20 -0.25 -0.24 -0.29 -0.25 -0.18 2.14 -1.81 -0.20 -0.19 -0.22 -0.30 -0.21 -0.38 -0.21 -0.51 -0.15 -0.18 -0.29 -0.23 -0.19 -0.16 -0.26 -0.20 -0.19 -0.22 -0.31 -0.29 -0.20 1.42 -0.19 -0.21 -0.23 -0.28 0.71 -0.24 -0.49 -0.25 -0.26 2.73 -0.45 -0.32 -0.22
In [ ]:
X_train_std.shape, X_test_std.shape
Out[ ]:
((334, 264), (84, 264))
In [ ]:
y_train.shape, y_test.shape
Out[ ]:
((334, 1), (84, 1))
In [ ]:
all_model_summary=pd.read_pickle('dataframe.pickle')

TFIDF Logistic Regression

In [ ]:
lr= LogisticRegression(C=.01,solver='lbfgs', multi_class='multinomial', random_state = 42)
lr_tfidf_result=function_model("Logistic Regression tfidf",lr, X_train_std, y_train, X_test_std, y_test)
Model:  Logistic Regression tfidf
Train Accuracy score:  0.8083832335329342
Test Accuracy score:  0.7142857142857143
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      0.97      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.15      0.19      0.17        84
weighted avg       0.55      0.71      0.62        84

KNN TFIDF

In [ ]:
knn=KNeighborsClassifier(n_neighbors=9, metric='minkowski', p=1, weights='uniform', n_jobs=-1)
knn_tfidf_result=function_model("K Nearest Neighbour tfidf",knn,X_train_std, y_train, X_test_std, y_test)
Model:  K Nearest Neighbour tfidf
Train Accuracy score:  0.7425149700598802
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

SVC TFIDF

In [ ]:
svc=svm.SVC(C=.1, degree=2, gamma=.01, kernel='rbf', random_state=42)
svc_tfidf_result=function_model("SVC tfidf",svc, X_train_std, y_train, X_test_std, y_test)
Model:  SVC tfidf
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Decision Tree TFIDF

In [ ]:
dt=DecisionTreeClassifier(criterion='entropy', random_state=42, max_depth=3, min_samples_leaf=10, min_samples_split=3)
dt_tfidf_result=function_model("Decision Tree tfidf",dt, X_train_std, y_train, X_test_std, y_test)
Model:  Decision Tree tfidf
Train Accuracy score:  0.7425149700598802
Test Accuracy score:  0.7261904761904762
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.73        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.55      0.73      0.63        84

Random Forest TFIDF

In [ ]:
rf=RandomForestClassifier(criterion='gini', random_state=42, max_depth=4, min_samples_leaf=3, min_samples_split=15,                                  n_estimators=100, max_features='sqrt')
rf_tfidf_result=function_model("Random Forest tfidf ",rf, X_train_std, y_train, X_test_std, y_test)
Model:  Random Forest tfidf 
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Ada boost TFIDF

In [ ]:
ada_boost= AdaBoostClassifier(random_state=42, n_estimators=75, learning_rate=.1)
ada_tfidf_result=function_model("Ada Boost tfidf ",ada_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Ada Boost tfidf 
Train Accuracy score:  0.7455089820359282
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

Grad Boost TFIDF

In [ ]:
grad_boost= GradientBoostingClassifier(random_state=42, n_estimators=50, learning_rate=.01, max_depth=3, max_features='auto', subsample=.5)
gb_tfidf_result=function_model("Gradient Boosting tfidf ",grad_boost, X_train_std, y_train, X_test_std, y_test)
Model:  Gradient Boosting tfidf 
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

XGB TFIDF

In [ ]:
xgb_clf = xgb.XGBClassifier(booster='gbtree', learning_rate=.1, max_depth=6, n_estimator=50, sampling_method='uniform', reg_alpha=.7, reg_lambda=.7)
xgb_tfidf_result=function_model("XGB tfidf ",xgb_clf, X_train_std, y_train, X_test_std, y_test)
Model:  XGB tfidf 
Train Accuracy score:  0.9970059880239521
Test Accuracy score:  0.7261904761904762
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.98      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.73        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.55      0.73      0.63        84

LGBM TFIDF

In [ ]:
lgbm = LGBMClassifier(colsample_bytree=.8, learning_rate=.01, max_depth=3, n_estimators=50, reg_alpha=.5, reg_lambda=.5)
lgbm_tfidf_result=function_model("Light GBM tfidf ",lgbm, X_train_std, y_train, X_test_std, y_test)
Model:  Light GBM tfidf 
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing row-wise multi-threading, the overhead of testing was 0.000765 seconds.
You can set `force_row_wise=true` to remove the overhead.
And if memory is not enough, you can set `force_col_wise=true`.
[LightGBM] [Info] Total Bins 2607
[LightGBM] [Info] Number of data points in the train set: 334, number of used features: 136
[LightGBM] [Info] Start training from score -0.301753
[LightGBM] [Info] Start training from score -2.345405
[LightGBM] [Info] Start training from score -2.592265
[LightGBM] [Info] Start training from score -2.633087
[LightGBM] [Info] Start training from score -4.019382
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
Train Accuracy score:  0.7395209580838323
Test Accuracy score:  0.7380952380952381
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

In [ ]:
all_model_summary=all_model_summary.append(lr_tfidf_result)
all_model_summary=all_model_summary.append(knn_tfidf_result)
all_model_summary=all_model_summary.append(svc_tfidf_result)
all_model_summary=all_model_summary.append(dt_tfidf_result)
all_model_summary=all_model_summary.append(rf_tfidf_result)
all_model_summary=all_model_summary.append(ada_tfidf_result)
all_model_summary=all_model_summary.append(gb_tfidf_result)
all_model_summary=all_model_summary.append(xgb_tfidf_result)
all_model_summary=all_model_summary.append(lgbm_tfidf_result)

all_model_summary.reset_index(drop=True, inplace=True)
In [ ]:
all_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63
9 Logistic Regression SMOTE 0.96 0.67 0.65 0.67 0.65
10 K Nearest Neighbour SMOTE 0.82 0.13 0.76 0.13 0.14
11 SVC SMOTE 0.87 0.71 0.54 0.71 0.62
12 Decision Tree SMOTE 0.58 0.07 0.03 0.07 0.04
13 Random Forest SMOTE 0.88 0.42 0.68 0.42 0.49
14 Ada Boost SMOTE 0.64 0.49 0.61 0.49 0.53
15 Gradient Boosting SMOTE 0.94 0.51 0.67 0.51 0.56
16 XGB SMOTE 1.00 0.71 0.68 0.71 0.67
17 Light GBM SMOTE 0.93 0.50 0.68 0.50 0.55
18 Logistic Regression tomek (Undersampling) 0.79 0.75 0.66 0.75 0.67
19 K Nearest Neighbour tomek(Undersampling) 0.73 0.75 0.62 0.75 0.65
20 SVC tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
21 Decision Tree tomek (Undersampling) 0.74 0.71 0.55 0.71 0.62
22 Random Forest tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
23 Ada Boost tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
24 Gradient Boosting tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
25 XGB tomek (Undersampling) 1.00 0.70 0.58 0.70 0.63
26 Light GBM tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
27 Logistic Regression word2vec 0.75 0.74 0.54 0.74 0.63
28 K Nearest Neighbour word2vec 0.74 0.74 0.54 0.74 0.63
29 SVC word2vec 0.74 0.74 0.54 0.74 0.63
30 Decision Tree word2vec 0.76 0.71 0.58 0.71 0.64
31 Random Forest word2vec 0.74 0.74 0.54 0.74 0.63
32 Ada Boost word2vec 0.74 0.74 0.54 0.74 0.63
33 Gradient Boosting word2vec 0.74 0.74 0.54 0.74 0.63
34 XGB word2vec 1.00 0.73 0.55 0.73 0.63
35 Light GBM word2vec 0.74 0.74 0.54 0.74 0.63
36 Logistic Regression tfidf 0.81 0.71 0.55 0.71 0.62
37 K Nearest Neighbour tfidf 0.74 0.74 0.54 0.74 0.63
38 SVC tfidf 0.74 0.74 0.54 0.74 0.63
39 Decision Tree tfidf 0.74 0.73 0.55 0.73 0.63
40 Random Forest tfidf 0.74 0.74 0.54 0.74 0.63
41 Ada Boost tfidf 0.75 0.74 0.54 0.74 0.63
42 Gradient Boosting tfidf 0.74 0.74 0.54 0.74 0.63
43 XGB tfidf 1.00 0.73 0.55 0.73 0.63
44 Light GBM tfidf 0.74 0.74 0.54 0.74 0.63
In [ ]:
all_model_summary.to_pickle('dataframe.pickle')
all_model_summary.to_pickle('dataframe_original_smote_tomek_word2vec_tfidf.pickle')

Performance of Glove on original data

In [ ]:
all_model_summary.iloc[:9,:]
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Logistic Regression 0.79 0.75 0.66 0.75 0.67
1 K Nearest Neighbour 0.74 0.75 0.62 0.75 0.65
2 SVC 0.74 0.74 0.54 0.74 0.63
3 Decision Tree 0.75 0.73 0.55 0.73 0.63
4 Random Forest 0.74 0.74 0.54 0.74 0.63
5 Ada Boost 0.74 0.74 0.54 0.74 0.63
6 Gradient Boosting 0.74 0.74 0.54 0.74 0.63
7 XGB 1.00 0.75 0.67 0.75 0.67
8 Light GBM 0.74 0.74 0.54 0.74 0.63

Glove performance on Upsampled data

In [ ]:
all_model_summary.iloc[9:18,:]
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
9 Logistic Regression SMOTE 0.96 0.67 0.65 0.67 0.65
10 K Nearest Neighbour SMOTE 0.82 0.13 0.76 0.13 0.14
11 SVC SMOTE 0.87 0.71 0.54 0.71 0.62
12 Decision Tree SMOTE 0.58 0.07 0.03 0.07 0.04
13 Random Forest SMOTE 0.88 0.42 0.68 0.42 0.49
14 Ada Boost SMOTE 0.64 0.49 0.61 0.49 0.53
15 Gradient Boosting SMOTE 0.94 0.51 0.67 0.51 0.56
16 XGB SMOTE 1.00 0.71 0.68 0.71 0.67
17 Light GBM SMOTE 0.93 0.50 0.68 0.50 0.55

Glove performance on Undersample data

In [ ]:
all_model_summary.iloc[18:27,:]
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
18 Logistic Regression tomek (Undersampling) 0.79 0.75 0.66 0.75 0.67
19 K Nearest Neighbour tomek(Undersampling) 0.73 0.75 0.62 0.75 0.65
20 SVC tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
21 Decision Tree tomek (Undersampling) 0.74 0.71 0.55 0.71 0.62
22 Random Forest tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
23 Ada Boost tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
24 Gradient Boosting tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63
25 XGB tomek (Undersampling) 1.00 0.70 0.58 0.70 0.63
26 Light GBM tomek (Undersampling) 0.72 0.74 0.54 0.74 0.63

Word2vec performance on original data

In [ ]:
all_model_summary.iloc[27:36,:]
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
27 Logistic Regression word2vec 0.75 0.74 0.54 0.74 0.63
28 K Nearest Neighbour word2vec 0.74 0.74 0.54 0.74 0.63
29 SVC word2vec 0.74 0.74 0.54 0.74 0.63
30 Decision Tree word2vec 0.76 0.71 0.58 0.71 0.64
31 Random Forest word2vec 0.74 0.74 0.54 0.74 0.63
32 Ada Boost word2vec 0.74 0.74 0.54 0.74 0.63
33 Gradient Boosting word2vec 0.74 0.74 0.54 0.74 0.63
34 XGB word2vec 1.00 0.73 0.55 0.73 0.63
35 Light GBM word2vec 0.74 0.74 0.54 0.74 0.63

TFIDF performance on original data

In [ ]:
all_model_summary.iloc[36:45,:]
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
36 Logistic Regression tfidf 0.81 0.71 0.55 0.71 0.62
37 K Nearest Neighbour tfidf 0.74 0.74 0.54 0.74 0.63
38 SVC tfidf 0.74 0.74 0.54 0.74 0.63
39 Decision Tree tfidf 0.74 0.73 0.55 0.73 0.63
40 Random Forest tfidf 0.74 0.74 0.54 0.74 0.63
41 Ada Boost tfidf 0.75 0.74 0.54 0.74 0.63
42 Gradient Boosting tfidf 0.74 0.74 0.54 0.74 0.63
43 XGB tfidf 1.00 0.73 0.55 0.73 0.63
44 Light GBM tfidf 0.74 0.74 0.54 0.74 0.63

Observations based on basic ML model performance

  • It seems best to work with imbalanced data rather than applying upsampling or downsampling
  • Of all the basic ML models, Logistic regression seems to be best performing model across test accuracy, precision, recall, f1 score having train and test accuracy almost near as compared to other models indicating there isn't much overfitting.
  • After Logistic regression, XGB seems to be performing well almost similar in all aspects except training accuracy, it seems XGB is overfitting based on train and test accuracy score. One thing to note is that XGB takes much more time to execute that Logistic regression hence if speed is of importance than Logistic regression will be a better choice
  • Rest of models on imbalanced data seems to be perfoming well but seems to be losing compared to Logistic Regression on either of precision, recall or f1 metric score
  • It can be seen that TFIDF and word2vec are giving similar performance. However Glove seems to be giving slight better performance for Logistic regression and XGB
  • We are able to achieve maximum of 75% accuracy on test data, since predicting accident level seems importance as it involves human facing injuries we need to increase Test accuracy. For that we will need more number of quality data.

Milestone 2¶

In [ ]:
import pandas as pd
import numpy as np

import seaborn as sns
import matplotlib.pyplot as plt

%matplotlib inline

pd.set_option('display.float_format', lambda x: '{:,.2f}'.format(x))
pd.set_option('display.max_columns', None)

sns.set(style="whitegrid", color_codes=True)

import warnings
warnings.filterwarnings('ignore')

import tensorflow as tf
from gensim.scripts.glove2word2vec import glove2word2vec
from gensim.models import Word2Vec, KeyedVectors



from sklearn.model_selection import train_test_split


from sklearn import metrics
from sklearn.metrics import classification_report
from sklearn.metrics import accuracy_score, f1_score, confusion_matrix, recall_score, precision_score, roc_auc_score

import pickle
import gensim.downloader as api
from sklearn.preprocessing import LabelEncoder

from tensorflow.keras.layers import  LeakyReLU
from tensorflow.keras.callbacks import EarlyStopping ,ReduceLROnPlateau
from imblearn.over_sampling import SMOTE

Importing Data

In [ ]:
from google.colab import drive
drive.mount('/content/drive')
Mounted at /content/drive
In [ ]:
#Navigating to drive path where data source is
%cd '/content/drive/MyDrive/Colab/Capstone Project'
#%cd '/content/drive/MyDrive/Colab/Capstone Project'
/content/drive/.shortcut-targets-by-id/1ZnjQmwDAMDdU-EOFEljEjwY3DAyrLLn4/Capstone Project
In [ ]:
#lets read the clean data from CSV
cleaned_data=pd.read_csv('cleaned_IHMStefanini_industrial_safety_and_health_database_with_accidents_description.csv')
In [ ]:
#lets validate shape
cleaned_data.shape
Out[ ]:
(418, 16)
In [8]:
cleaned_data.head(1)
Out[8]:
Country Local Industry Sector Accident Level Potential Accident Level Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description
0 Country_01 Local_01 Mining I IV Male Third Party Pressed 2016 1 1 Friday 53 Summer 1 while removing the drill rod of the jumbo for ...

Creating one more feature which will colate data of all the columns, so performing some preprocessing steps

In [9]:
label_encoder=LabelEncoder()
cleaned_data['Accident Level']=label_encoder.fit_transform(cleaned_data['Accident Level'])
In [10]:
y=tf.keras.utils.to_categorical(cleaned_data['Accident Level'])
In [11]:
y.shape
Out[11]:
(418, 5)
In [12]:
y
Out[12]:
array([[1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       ...,
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.]], dtype=float32)
In [13]:
#dropping Accident Level, Potential accident level from data
cleaned_data.drop(columns=['Accident Level','Potential Accident Level'], axis=1, inplace=True)
In [14]:
cleaned_data.head(1)
Out[14]:
Country Local Industry Sector Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description
0 Country_01 Local_01 Mining Male Third Party Pressed 2016 1 1 Friday 53 Summer 1 while removing the drill rod of the jumbo for ...
In [15]:
cleaned_data['is_holiday'] = cleaned_data['is_holiday'].map({1: 'Yes', 0: 'No'}).astype(str)
In [16]:
month_map = {
    1: 'January',
    2: 'February',
    3: 'March',
    4: 'April',
    5: 'May',
    6: 'June',
    7: 'July',
    8: 'August',
    9: 'September',
    10: 'October',
    11: 'November',
    12: 'December'
}

# Map month numbers to names and convert the column to string
cleaned_data['Month'] = cleaned_data['Month'].map(month_map).astype(str)
In [17]:
cleaned_data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 418 entries, 0 to 417
Data columns (total 14 columns):
 #   Column             Non-Null Count  Dtype 
---  ------             --------------  ----- 
 0   Country            418 non-null    object
 1   Local              418 non-null    object
 2   Industry Sector    418 non-null    object
 3   Gender             418 non-null    object
 4   Employee Type      418 non-null    object
 5   Critical Risk      418 non-null    object
 6   Year               418 non-null    int64 
 7   Month              418 non-null    object
 8   Day                418 non-null    int64 
 9   Weekday            418 non-null    object
 10  WeekofYear         418 non-null    int64 
 11  season             418 non-null    object
 12  is_holiday         418 non-null    object
 13  clean_description  418 non-null    object
dtypes: int64(3), object(11)
memory usage: 45.8+ KB
In [18]:
cleaned_data.head(1)
Out[18]:
Country Local Industry Sector Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description
0 Country_01 Local_01 Mining Male Third Party Pressed 2016 January 1 Friday 53 Summer Yes while removing the drill rod of the jumbo for ...
In [19]:
cleaned_data['Month'].value_counts()
Out[19]:
February     61
April        51
June         51
March        50
May          40
January      39
July         24
September    24
December     23
August       21
October      21
November     13
Name: Month, dtype: int64
In [20]:
cleaned_data['is_holiday'].value_counts()
Out[20]:
No     414
Yes      4
Name: is_holiday, dtype: int64
In [21]:
#creating new feature which concatenates value of all the feature

abc=''
for i in cleaned_data.columns:
  abc= abc + i + ' ' +cleaned_data[i].astype('str')+ ' '
In [22]:
cleaned_data['all_description']=abc
In [23]:
#striping of extra spaces
cleaned_data['all_description'] = cleaned_data['all_description'].str.strip()
In [24]:
cleaned_data['all_description'][0]
Out[24]:
'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Pressed Year 2016 Month January Day 1 Weekday Friday WeekofYear 53 season Summer is_holiday Yes clean_description while removing the drill rod of the jumbo for maintenance the supervisor proceeds to loosen the support of the intermediate centralizer to facilitate the removal seeing this the mechanic supports one end on the drill of the equipment to pull with both hands the bar and accelerate the removal from this at this moment the bar slides from its point of support and tightens the fingers of the mechanic between the drilling bar and the beam of the jumbo'
In [ ]:
#splitting data into test and train set
X_train, X_test, y_train, y_test = train_test_split(cleaned_data['all_description'],y, test_size=0.2,random_state=42, stratify=y)
In [ ]:
X_train.shape, X_test.shape
Out[ ]:
((334,), (84,))
In [ ]:
y_train.shape, y_test.shape
Out[ ]:
((334, 5), (84, 5))

Build Tokenizer¶

In [ ]:
desired_vocab_size = 10000 #Vocablury size
In [ ]:
t= tf.keras.preprocessing.text.Tokenizer(num_words=desired_vocab_size)
In [ ]:
t.fit_on_texts(X_train.tolist())
In [ ]:
#print word index
print(t.word_index)
{'the': 1, 'of': 2, 'local': 3, 'country': 4, 'employee': 5, 'to': 6, 'and': 7, 'is': 8, 'in': 9, 'a': 10, 'no': 11, 'was': 12, 'type': 13, 'clean': 14, 'day': 15, 'risk': 16, 'industry': 17, 'sector': 18, 'gender': 19, 'critical': 20, 'year': 21, 'month': 22, 'weekday': 23, 'weekofyear': 24, 'season': 25, 'holiday': 26, 'description': 27, 'male': 28, 'at': 29, '01': 30, 'that': 31, 'on': 32, '2016': 33, 'others': 34, 'with': 35, 'his': 36, 'when': 37, 'mining': 38, 'third': 39, 'party': 40, 'he': 41, 'hand': 42, 'summer': 43, 'left': 44, 'from': 45, 'causing': 46, 'it': 47, 'autumn': 48, 'right': 49, '02': 50, 'by': 51, '03': 52, '2017': 53, 'metals': 54, 'operator': 55, 'for': 56, 'which': 57, 'injury': 58, 'time': 59, 'activity': 60, 'during': 61, 'area': 62, 'moment': 63, 'equipment': 64, 'pipe': 65, 'work': 66, 'collaborator': 67, 'thursday': 68, 'accident': 69, 'this': 70, 'level': 71, 'finger': 72, '10': 73, 'an': 74, 'one': 75, 'friday': 76, 'tuesday': 77, 'assistant': 78, 'not': 79, 'saturday': 80, 'february': 81, 'worker': 82, 'rock': 83, 'cm': 84, 'floor': 85, '04': 86, 'spring': 87, 'mr': 88, 'support': 89, 'wednesday': 90, 'june': 91, 'out': 92, 'were': 93, 'approximately': 94, 'cut': 95, 'april': 96, '05': 97, 'monday': 98, 'between': 99, 'm': 100, 'mesh': 101, 'remote': 102, 'metal': 103, 'height': 104, 'being': 105, 'safety': 106, 'after': 107, 'face': 108, 'winter': 109, 'meters': 110, 'sunday': 111, 'as': 112, 'kg': 113, 'part': 114, '06': 115, 'against': 116, 'used': 117, 'fall': 118, 'described': 119, 'side': 120, 'had': 121, 'there': 122, 'march': 123, 'team': 124, 'gloves': 125, 'circumstances': 126, 'using': 127, 'they': 128, 'access': 129, '8': 130, 'towards': 131, 'january': 132, 'may': 133, 'hit': 134, 'medical': 135, 'made': 136, 'injured': 137, 'truck': 138, 'while': 139, 'pressed': 140, 'who': 141, 'two': 142, 'same': 143, 'x': 144, 'platform': 145, 'performed': 146, 'performing': 147, 'am': 148, 'place': 149, 'pump': 150, 'falls': 151, 'projection': 152, '4': 153, 'maintenance': 154, '6': 155, '7': 156, 'foot': 157, 'back': 158, '23': 159, 'where': 160, '17': 161, 'mechanic': 162, 'front': 163, '24': 164, '25': 165, '11': 166, 'hits': 167, 'generating': 168, 'structure': 169, 'position': 170, 'inside': 171, 'water': 172, 'weight': 173, 'manual': 174, 'drill': 175, 'its': 176, 'hitting': 177, '18': 178, 'point': 179, 'pm': 180, '15': 181, '14': 182, 'so': 183, 'cleaning': 184, 'immediately': 185, 'arm': 186, 'end': 187, 'employees': 188, '08': 189, 'activities': 190, 'reports': 191, 'remove': 192, 'nv': 193, 'december': 194, '16': 195, 'plate': 196, '1': 197, 'other': 198, 'workers': 199, 'hose': 200, 'company': 201, 'august': 202, 'be': 203, 'vehicle': 204, 'moving': 205, '9': 206, '20': 207, 'july': 208, '13': 209, 'october': 210, 'moments': 211, 'leg': 212, 'center': 213, 'did': 214, 'released': 215, 'use': 216, 'tools': 217, '12': 218, 'due': 219, 'september': 220, 'drilling': 221, 'impacting': 222, 'tube': 223, 'ladder': 224, 'another': 225, 'first': 226, 'then': 227, 'reaction': 228, 'but': 229, 'moved': 230, 'belt': 231, 'upper': 232, 'key': 233, '5': 234, 'event': 235, 'through': 236, 'ground': 237, 'trying': 238, 'caused': 239, 'wearing': 240, 'small': 241, '19': 242, 'piece': 243, 'reaching': 244, 'near': 245, '2': 246, '22': 247, 'bolt': 248, 'them': 249, 'carried': 250, 'edge': 251, 'both': 252, 'technician': 253, 'top': 254, '27': 255, '3': 256, 'movement': 257, 'fragment': 258, 'off': 259, 'bees': 260, 'allergic': 261, 'material': 262, 'came': 263, 'producing': 264, 'bar': 265, 'chemical': 266, 'substances': 267, 'workshop': 268, 'falling': 269, 'over': 270, 'base': 271, 'hopper': 272, 'diameter': 273, 'gable': 274, 'loader': 275, 'loading': 276, 'contact': 277, 'their': 278, 'field': 279, 'about': 280, 'eye': 281, 'cutting': 282, 'into': 283, 'head': 284, '29': 285, '30': 286, 'up': 287, '21': 288, 'pressure': 289, 'under': 290, 'opening': 291, 'hands': 292, 'sheet': 293, 'driver': 294, 'wound': 295, 'all': 296, '07': 297, 'placed': 298, 'verify': 299, 'approx': 300, 'projected': 301, 'slides': 302, 'assistants': 303, 'personnel': 304, 'da': 305, 'silva': 306, 'car': 307, 'cathode': 308, 'him': 309, 'master': 310, 'without': 311, 'box': 312, 'move': 313, 'removing': 314, 'pain': 315, 'air': 316, 'machine': 317, 'collaborators': 318, 'hammer': 319, 'removal': 320, 'fragments': 321, 'neck': 322, 'region': 323, 'second': 324, 'returned': 325, 'lower': 326, 'direction': 327, 'line': 328, 'guard': 329, 'rod': 330, 'collection': 331, 'mine': 332, 'carrying': 333, 'wooden': 334, 'around': 335, 'venomous': 336, 'animals': 337, 'removed': 338, 'pressing': 339, 'scoop': 340, 'slipped': 341, 'acid': 342, 'november': 343, 'welder': 344, 'pulley': 345, 'frame': 346, 'roof': 347, 'female': 348, 'cx': 349, 'unit': 350, 'person': 351, 'room': 352, 'slight': 353, 'last': 354, 'prevention': 355, 'locomotive': 356, 'ore': 357, 'located': 358, 'holding': 359, 'balance': 360, 'behind': 361, 'liquid': 362, 'proceeds': 363, 'held': 364, 'referred': 365, 'preparing': 366, 'make': 367, 'auxiliary': 368, 'away': 369, 'chain': 370, 'glasses': 371, 'operators': 372, 'soil': 373, '26': 374, 'hydraulic': 375, 'steel': 376, 'suddenly': 377, 'sting': 378, 'open': 379, 'control': 380, 'helmet': 381, 'gate': 382, 'scissor': 383, 'lesion': 384, 'times': 385, 'tower': 386, 'shotcrete': 387, 'block': 388, 'supervisor': 389, 'hours': 390, 'wall': 391, 'road': 392, 'step': 393, 'crown': 394, 'enter': 395, 'transferred': 396, 'thumb': 397, 'leaving': 398, 'lip': 399, 'points': 400, 'gps': 401, 'drainage': 402, 'stopped': 403, 'forest': 404, 'th': 405, 'ring': 406, 'easel': 407, 'little': 408, 'attacked': 409, 'valve': 410, 'solution': 411, 'making': 412, 'knee': 413, 'strip': 414, 'cable': 415, 'burn': 416, 'forearm': 417, 'grating': 418, 'release': 419, 'bite': 420, 'suffered': 421, 'partner': 422, 'order': 423, 'n': 424, 'sleeve': 425, 'tool': 426, 'surface': 427, 'ramp': 428, '31': 429, 'stop': 430, 'section': 431, 'blade': 432, 'went': 433, 'stepped': 434, 'iron': 435, 'minor': 436, 'jumbo': 437, 'your': 438, 'task': 439, 'fell': 440, 'hospital': 441, 'return': 442, 'impacts': 443, 'epps': 444, 'concrete': 445, 'geological': 446, 'following': 447, 'himself': 448, 'bites': 449, 'would': 450, 'basket': 451, 'rim': 452, 'goes': 453, 'glove': 454, 'swelling': 455, 'continued': 456, 'tank': 457, 'pulling': 458, 'impact': 459, 'generates': 460, 'load': 461, 'container': 462, 'wire': 463, 'ventilation': 464, 'plant': 465, 'blocks': 466, 'are': 467, 'took': 468, 'normally': 469, 'change': 470, 'help': 471, 'suction': 472, 'comes': 473, 'struck': 474, 'bolts': 475, 'staff': 476, 'discomfort': 477, 'only': 478, 'service': 479, 'has': 480, 'slips': 481, 'rope': 482, 'mobile': 483, 'probe': 484, 'op': 485, 'down': 486, 'mixkret': 487, 'lifting': 488, 'decides': 489, 'fifth': 490, 'protection': 491, 'g': 492, 'table': 493, 'chute': 494, 'inspection': 495, 'take': 496, 'detached': 497, 'some': 498, 'gives': 499, 'quickly': 500, 'washing': 501, 'force': 502, 'feels': 503, 'evacuated': 504, 'imprisoned': 505, 'coming': 506, 'hole': 507, 'pressurized': 508, 'systems': 509, 'toward': 510, 'manually': 511, 'filling': 512, 'rubber': 513, 'completed': 514, 'post': 515, 'suffering': 516, 'doing': 517, 'victim': 518, 'de': 519, 'leave': 520, 'door': 521, 'upon': 522, 'cabin': 523, 'entrance': 524, 'mechanical': 525, 'continue': 526, 'normal': 527, 'verified': 528, 'lever': 529, 'avoid': 530, '28': 531, 'suffers': 532, 'system': 533, 'body': 534, 'flange': 535, 'pulp': 536, 'rotation': 537, 'chimney': 538, 'positioned': 539, 'cylinder': 540, 'positioning': 541, 'electrical': 542, 'rods': 543, 'ear': 544, 'choco': 545, 'suspended': 546, 'high': 547, 'stings': 548, 'evaluation': 549, 'bearing': 550, 'manoel': 551, '40': 552, 'south': 553, 'zinc': 554, 'stuck': 555, 'slide': 556, 'next': 557, 'boots': 558, 'check': 559, 'or': 560, 'noticing': 561, 'product': 562, 'execution': 563, 'placing': 564, 'handle': 565, 'tip': 566, 'geologist': 567, 'traveled': 568, 'surprised': 569, 'index': 570, 'aid': 571, 'felt': 572, 'broken': 573, 'well': 574, 'tire': 575, 'instant': 576, 'taken': 577, 'have': 578, 'boot': 579, 'covered': 580, 'forehead': 581, 'emergency': 582, 'hooked': 583, 'do': 584, 'ankle': 585, '35': 586, 'set': 587, 'accompanied': 588, 'communicates': 589, 'crane': 590, 'plates': 591, 'central': 592, 'superficial': 593, 'noise': 594, 'presence': 595, 'gutter': 596, 'hot': 597, 'middle': 598, 'passes': 599, 'discharge': 600, 'mill': 601, 'beam': 602, 'h': 603, 'length': 604, 'does': 605, 'moves': 606, 'realized': 607, 'd': 608, 'returning': 609, 'city': 610, 'turn': 611, 'shock': 612, 'passed': 613, 'proceed': 614, 'close': 615, 'lenses': 616, 'mud': 617, 'ingot': 618, 'entering': 619, 'proceeded': 620, 'striking': 621, 'fingers': 622, 'installation': 623, 'leaves': 624, 'maneuver': 625, 'projecting': 626, 'flow': 627, 'evacuation': 628, 'sound': 629, 'tipper': 630, 'remains': 631, 'lid': 632, 'vegetation': 633, 'found': 634, 'stilson': 635, '50': 636, 'electrician': 637, 'cat': 638, 'waste': 639, 'intersection': 640, 'having': 641, 'fourth': 642, 'heading': 643, 'loses': 644, 'unlocking': 645, 'board': 646, 'long': 647, 'sole': 648, 'finds': 649, 'any': 650, 'attention': 651, 'driller': 652, 'turned': 653, 'bumped': 654, 'evaluate': 655, 'clerk': 656, 'still': 657, 'pieces': 658, 'withdrawal': 659, 'wrench': 660, 'own': 661, 'received': 662, 'affected': 663, 'teams': 664, 'decide': 665, 'could': 666, 'stump': 667, 'opened': 668, 'stops': 669, 'untimely': 670, 'cuts': 671, 'palm': 672, 'doctor': 673, 'previously': 674, '48': 675, 'welding': 676, 'mt': 677, 'lamp': 678, 'bruise': 679, 'blow': 680, 'inch': 681, '38': 682, 'places': 683, 'returns': 684, 'lifts': 685, 'holes': 686, 'approximate': 687, 'bee': 688, 'entered': 689, 'decided': 690, 'positive': 691, 'winch': 692, 'mechanics': 693, 'lock': 694, 'b': 695, 'alone': 696, 'chamber': 697, 'loose': 698, 'cheekbone': 699, 'walking': 700, 'pushing': 701, 'electric': 702, 'notice': 703, 'ob': 704, 'operation': 705, 'working': 706, 'ppe': 707, '34': 708, 'once': 709, 'zone': 710, '37': 711, 'rear': 712, 'full': 713, 'three': 714, 'enters': 715, 'overflow': 716, 'leather': 717, 'performs': 718, 'complete': 719, 'gets': 720, 'chin': 721, 'oil': 722, 'rail': 723, 'lift': 724, 'test': 725, 'site': 726, 'target': 727, 'inner': 728, '32': 729, 'cmxcmxcm': 730, 'old': 731, 'together': 732, 'contusion': 733, 'transmission': 734, 'boiler': 735, 'several': 736, 'engine': 737, 'cleaned': 738, 'go': 739, 'vehicles': 740, 'distance': 741, 'bp': 742, 'shoulder': 743, 'bank': 744, 'i': 745, 'gr': 746, 'occurred': 747, 'internal': 748, 'protective': 749, 'makes': 750, 'fence': 751, 'ahead': 752, 'start': 753, 'main': 754, 'pulls': 755, 'reach': 756, 'can': 757, 'descending': 758, 'apparently': 759, 'previous': 760, 'will': 761, 'incident': 762, 'got': 763, 'see': 764, 'identified': 765, 'wood': 766, 'process': 767, '49': 768, 'holder': 769, 'helper': 770, 'loosen': 771, 'bucket': 772, 'eyes': 773, '42': 774, 'materials': 775, 'branch': 776, 'bitten': 777, 'perforation': 778, 'bag': 779, 'displacement': 780, 'heated': 781, 'locking': 782, 'she': 783, 'directed': 784, 'hdpe': 785, 'onto': 786, 'impacted': 787, 'wrist': 788, 'metallic': 789, 'split': 790, 'initial': 791, 'chuck': 792, 'bolter': 793, 'finished': 794, 'william': 795, 'pipes': 796, '43': 797, 'put': 798, 'conveyor': 799, 'bottom': 800, 'asks': 801, 'supervising': 802, 'ustulation': 803, '51': 804, 'instants': 805, 'pushes': 806, 'getting': 807, 'deep': 808, 'rubs': 809, 'arranged': 810, 'cart': 811, 'imprisons': 812, 'raise': 813, 'tubing': 814, 'lens': 815, 'composed': 816, 'needed': 817, 'divine': 818, 'machete': 819, 'people': 820, 'four': 821, 'begins': 822, 'proceeding': 823, 'impromec': 824, 'injuries': 825, 'traveling': 826, 'thermal': 827, 'indicated': 828, 'survey': 829, 'st': 830, 'dining': 831, 'tension': 832, 'throwing': 833, 'particles': 834, 'paralyzed': 835, 'routine': 836, 'necessary': 837, 'protector': 838, 'climbing': 839, 'staircase': 840, 'removes': 841, 'housing': 842, 'reducer': 843, 'irritation': 844, 'perform': 845, 'backwards': 846, 'leak': 847, 'nilton': 848, 'carry': 849, 'assembly': 850, 'lt': 851, 'fenced': 852, 'loud': 853, 'general': 854, 'nut': 855, 'care': 856, 'wheel': 857, 'extension': 858, 'pvc': 859, 'project': 860, 'mapping': 861, 'phase': 862, 'slope': 863, 'occurs': 864, 'clearing': 865, 'oven': 866, 'happened': 867, 'approaching': 868, 'track': 869, 'motor': 870, 'glass': 871, 'scaffolding': 872, 'press': 873, 'because': 874, 'anode': 875, 'xxcm': 876, 'unloading': 877, 'exit': 878, 'drawer': 879, 'stage': 880, 'way': 881, 'pit': 882, 'c': 883, 'ampoloader': 884, 'pin': 885, 'feel': 886, 'turning': 887, 'until': 888, 'saw': 889, 'pull': 890, 'patrol': 891, 'gun': 892, 'inches': 893, 'aluminum': 894, 'lifted': 895, '52': 896, 'alpha': 897, 'accommodate': 898, 'manipulating': 899, 'resulting': 900, 'releasing': 901, 'parking': 902, 'nail': 903, 'identify': 904, 'seat': 905, 'mineral': 906, 'assembling': 907, 'orlando': 908, 'fit': 909, 'attended': 910, 'soon': 911, '33': 912, 'cloth': 913, 'involved': 914, 'state': 915, 'highway': 916, 'aripuan': 917, 'distancing': 918, 'hurried': 919, 'girdle': 920, 'goggles': 921, 'bomb': 922, 'transport': 923, 'form': 924, 'roll': 925, 'additive': 926, 'license': 927, 'drop': 928, 'burning': 929, 'natclar': 930, 'explosives': 931, 'space': 932, 'cap': 933, 'ran': 934, 'maribondos': 935, 'trip': 936, 'since': 937, 'forklift': 938, 'thigh': 939, 'tries': 940, 'later': 941, 'action': 942, 'empty': 943, 'splashes': 944, '47': 945, 'tie': 946, 'false': 947, 'twisting': 948, 'clamp': 949, 'sustained': 950, 'rice': 951, 'blunt': 952, 'albino': 953, 'luis': 954, 'fine': 955, 'caught': 956, 'installing': 957, 'la': 958, 'climbs': 959, 'sling': 960, 'supported': 961, 'legs': 962, 'exchange': 963, 'heard': 964, 'current': 965, 'sediment': 966, 'screen': 967, 'safe': 968, 'breaks': 969, 'effect': 970, 'dust': 971, 'cervical': 972, 'degree': 973, 'railing': 974, '45': 975, 'guide': 976, 'instep': 977, 'power': 978, 'activated': 979, 'transfer': 980, 'channel': 981, 'squat': 982, 'push': 983, 'opens': 984, 'fracture': 985, 'distal': 986, 'means': 987, 'encountered': 988, 'more': 989, 'boltec': 990, 'turns': 991, 'forward': 992, 'cables': 993, 'tests': 994, 'nose': 995, 'pasco': 996, 'lane': 997, '39': 998, 'accumulation': 999, 'steps': 1000, 'corner': 1001, 'horse': 1002, 'very': 1003, 'called': 1004, 'rebound': 1005, 'substation': 1006, 'litorina': 1007, 'sink': 1008, 'projects': 1009, 'corresponding': 1010, 'metatarsal': 1011, 'finding': 1012, 'blows': 1013, 'filter': 1014, 'angle': 1015, 'pot': 1016, 'secondary': 1017, 'blocked': 1018, '41': 1019, 'canvas': 1020, 'preparation': 1021, 'cement': 1022, 'prevented': 1023, 'scooptram': 1024, 'light': 1025, 'fire': 1026, 'strap': 1027, 'weighing': 1028, 'protruding': 1029, 'wore': 1030, 'sampling': 1031, 'uniform': 1032, 'allergy': 1033, 'feeder': 1034, 'autoclave': 1035, 'radio': 1036, 'flash': 1037, 'break': 1038, 'brace': 1039, 'resting': 1040, 'chuteo': 1041, 'blasting': 1042, 'disassembled': 1043, 'provoking': 1044, 'throw': 1045, 'themselves': 1046, 'sliding': 1047, 'slid': 1048, 'days': 1049, 'connection': 1050, 'magnetometric': 1051, 'hat': 1052, 'attack': 1053, 'get': 1054, 'already': 1055, 'cell': 1056, 'recovery': 1057, 'pick': 1058, 'loads': 1059, 'e': 1060, 'accessories': 1061, 'nd': 1062, 'cover': 1063, 'thorn': 1064, 'what': 1065, 'pierced': 1066, 'parked': 1067, 'works': 1068, 'pad': 1069, 'supports': 1070, 'camera': 1071, 'guillotine': 1072, 'sample': 1073, 'electrolysis': 1074, 'negative': 1075, 'polyethylene': 1076, 'compressed': 1077, 'started': 1078, 'circumstance': 1079, 'supervision': 1080, 'unexpectedly': 1081, 'mouth': 1082, 'inspect': 1083, 'along': 1084, 'store': 1085, 'short': 1086, 'cocada': 1087, 'wasp': 1088, 'evaluated': 1089, 'localized': 1090, 'followed': 1091, 'prospector': 1092, 'across': 1093, 'house': 1094, 'slip': 1095, 'treated': 1096, 'notices': 1097, 'observes': 1098, 'leaning': 1099, 'meter': 1100, 'standing': 1101, 'radial': 1102, 'coupling': 1103, 'shoe': 1104, 'chisel': 1105, 'disk': 1106, 'wagons': 1107, 'heavy': 1108, 'ee': 1109, 'mooring': 1110, 'been': 1111, 'sulfuric': 1112, 'barbed': 1113, 'hw': 1114, 'operates': 1115, 'radius': 1116, 'scaller': 1117, 'clinic': 1118, 'residual': 1119, 'intermediate': 1120, 'jumps': 1121, 'lunch': 1122, 'mild': 1123, 'before': 1124, 'stool': 1125, 'members': 1126, 'wca': 1127, 'rung': 1128, 'interior': 1129, 'robson': 1130, 'hdp': 1131, 'attached': 1132, 'jhonatan': 1133, 'hq': 1134, 'yes': 1135, 'shape': 1136, 'telescopic': 1137, 'clamping': 1138, 'lose': 1139, 'occurring': 1140, 'lights': 1141, 'grid': 1142, 'incimet': 1143, 'tying': 1144, 'hold': 1145, 'entry': 1146, 'tilted': 1147, 'nearby': 1148, 'eyewash': 1149, 'van': 1150, 'boards': 1151, 'puddle': 1152, 'list': 1153, 'bottle': 1154, 'filled': 1155, 'expelling': 1156, 'wash': 1157, 'trauma': 1158, 'paracatu': 1159, 'rolling': 1160, 'warehouse': 1161, 'ademir': 1162, 'five': 1163, 'thorns': 1164, 'prick': 1165, 'leggings': 1166, 'noticed': 1167, 'loosened': 1168, 'colleagues': 1169, 'wanted': 1170, 'drops': 1171, 'feeling': 1172, 'gts': 1173, 'designated': 1174, 'twice': 1175, 'grazed': 1176, 'just': 1177, 'spent': 1178, 'spilling': 1179, 'failure': 1180, '53': 1181, 'sodium': 1182, 'sulphide': 1183, 'maid': 1184, 'shower': 1185, 'note': 1186, 'ends': 1187, 'presented': 1188, 'plug': 1189, 'unicon': 1190, 'basin': 1191, 'grabs': 1192, 'locked': 1193, 'skimmer': 1194, 'broke': 1195, 'operating': 1196, 'jacket': 1197, 'manipulated': 1198, 'maneuvers': 1199, 'tells': 1200, 'depth': 1201, 'reason': 1202, 'teacher': 1203, 'messrs': 1204, 'culminated': 1205, 'feet': 1206, 'stretcher': 1207, 'result': 1208, 'engaged': 1209, 'excavation': 1210, 'shovel': 1211, 'friction': 1212, 'calf': 1213, 'filters': 1214, 'inclined': 1215, 'correct': 1216, 'tail': 1217, 'dumper': 1218, 'gear': 1219, 'cab': 1220, 'diamond': 1221, 'rescued': 1222, 'reached': 1223, 'vitaulic': 1224, 'dropped': 1225, 'finally': 1226, 'trapping': 1227, 'chest': 1228, 'gratings': 1229, 'rollover': 1230, 'respective': 1231, 'tm': 1232, 'assisted': 1233, 'horizontally': 1234, '09': 1235, 'phalanx': 1236, 'samuel': 1237, 'present': 1238, 'sides': 1239, 'directly': 1240, 'reconnaissance': 1241, 'farm': 1242, 'lzaro': 1243, 'felipe': 1244, 'divino': 1245, 'morais': 1246, 'ciliary': 1247, 'outcrop': 1248, 'attacks': 1249, 'snake': 1250, '36': 1251, 'tunnel': 1252, 'tc': 1253, 'pass': 1254, 'pulled': 1255, 'trench': 1256, 'tied': 1257, 'starting': 1258, 'coil': 1259, 'realizing': 1260, 'fact': 1261, 'passing': 1262, 'stung': 1263, 'renato': 1264, 'worn': 1265, 'climb': 1266, 'prevent': 1267, 'those': 1268, 'magazine': 1269, 'pom': 1270, 'thickener': 1271, 'maperu': 1272, 'km': 1273, 'according': 1274, 'warning': 1275, 'marco': 1276, 'spike': 1277, 'splash': 1278, 'stp': 1279, 'east': 1280, 'coworker': 1281, 'arriving': 1282, 'rpa': 1283, 'tabolas': 1284, 'bracket': 1285, 'frontal': 1286, 'mounted': 1287, 'collect': 1288, 'her': 1289, 'fixed': 1290, 'bridge': 1291, 'perceives': 1292, 'thrown': 1293, 'try': 1294, 'anchor': 1295, 'casting': 1296, 'copper': 1297, 'sludge': 1298, 'indicates': 1299, 'toe': 1300, 'emerson': 1301, 'trays': 1302, 'supporting': 1303, 'technicians': 1304, 'ask': 1305, 'below': 1306, 'pumps': 1307, 'geho': 1308, 'shaft': 1309, 'union': 1310, 'mix': 1311, 'shocrete': 1312, 'alimak': 1313, 'cage': 1314, 'heads': 1315, 'xx': 1316, 'pushed': 1317, 'arc': 1318, 'rafael': 1319, 'danillo': 1320, 'verifying': 1321, 'remained': 1322, 'official': 1323, 'quirodactyl': 1324, 'need': 1325, 'paulo': 1326, 'via': 1327, 'iii': 1328, 'closing': 1329, 'chicken': 1330, 'hoisting': 1331, 'hook': 1332, 'strike': 1333, 'immediate': 1334, 'nro': 1335, 'said': 1336, 'imprisonment': 1337, 'parks': 1338, 'fill': 1339, 'blowing': 1340, 'appears': 1341, 'advance': 1342, 'nylon': 1343, 'shot': 1344, 'kv': 1345, 'disabled': 1346, 'deenergized': 1347, 'profiles': 1348, 'oxyfuel': 1349, 'proingcom': 1350, 'foreman': 1351, 'external': 1352, 'indicate': 1353, 'refuge': 1354, 'orange': 1355, 'alert': 1356, 'detector': 1357, 'storms': 1358, 'correspond': 1359, 'towers': 1360, 'secured': 1361, 'pedro': 1362, 'brake': 1363, 'shifted': 1364, 'downward': 1365, 'tearing': 1366, 'gilvnio': 1367, 'insects': 1368, 'antiallergic': 1369, 'marcelo': 1370, 'responsible': 1371, 'monitoring': 1372, 'borehole': 1373, 'window': 1374, 'contracture': 1375, 'motion': 1376, 'crushing': 1377, 'come': 1378, 'thickness': 1379, 'unbalanced': 1380, 'twist': 1381, 'lima': 1382, 'ip': 1383, 'dry': 1384, 'washed': 1385, 'collided': 1386, 'cro': 1387, 'visualizes': 1388, 'lying': 1389, 'shift': 1390, 'energy': 1391, 'bring': 1392, 'storage': 1393, 'exploded': 1394, 'pneumatic': 1395, 'trucks': 1396, 'administrative': 1397, 'bending': 1398, 'obstructed': 1399, 'accidentally': 1400, 'activates': 1401, 'eyelid': 1402, 'reduced': 1403, 'stumbled': 1404, 'launch': 1405, 'danon': 1406, 'engineer': 1407, 'pen': 1408, 'lost': 1409, 'even': 1410, 'swing': 1411, 'row': 1412, 'mrcio': 1413, 'srgio': 1414, 'fz': 1415, 'spool': 1416, 'ahk': 1417, 'empresa': 1418, 'serves': 1419, 'cma': 1420, 'inspections': 1421, 'operational': 1422, 'excavated': 1423, 'remaining': 1424, 'occupants': 1425, 'vertical': 1426, 'mceisa': 1427, 'blanket': 1428, 'identifies': 1429, 'unload': 1430, 'size': 1431, 'seen': 1432, 'ppes': 1433, 'required': 1434, 'paralyze': 1435, 'swarm': 1436, 'coordinated': 1437, 'tried': 1438, 'handling': 1439, 'measuring': 1440, 'closed': 1441, 'burns': 1442, 'management': 1443, 'fan': 1444, 'chicoteo': 1445, 'slightly': 1446, 'furnace': 1447, 'confined': 1448, 'strong': 1449, 'leaching': 1450, 'including': 1451, 'gave': 1452, 'jos': 1453, 'yields': 1454, 'abruptly': 1455, 'milpo': 1456, 'bounces': 1457, 'blocking': 1458, 'isolation': 1459, 'energies': 1460, 'debarking': 1461, 'fitting': 1462, 'final': 1463, 'pound': 1464, 'splinter': 1465, 'embedded': 1466, 'uses': 1467, 'mx': 1468, 'picks': 1469, 'supply': 1470, 'attempting': 1471, 'detonating': 1472, 'cord': 1473, 'cabinet': 1474, 'industrial': 1475, 'cristian': 1476, 'solid': 1477, 'panel': 1478, 'reaches': 1479, 'gallery': 1480, 'exposed': 1481, 'luciano': 1482, 'crossing': 1483, 'interlaced': 1484, 'upwards': 1485, 'cause': 1486, 'knife': 1487, 'raised': 1488, 'sanitation': 1489, 'underground': 1490, 'brigade': 1491, 'ustulacin': 1492, 'unclog': 1493, 'santa': 1494, 'informs': 1495, 'construction': 1496, 'mason': 1497, 'fixing': 1498, 'setting': 1499, 'losing': 1500, 'sheets': 1501, 'adjustment': 1502, 'jose': 1503, 'align': 1504, 'problems': 1505, 'coordination': 1506, 'diesel': 1507, 'observing': 1508, 'duties': 1509, 'reporting': 1510, 'dismantled': 1511, 'cesar': 1512, 'marcos': 1513, 'stooped': 1514, 'deviate': 1515, 'whistling': 1516, 'pumping': 1517, 'paint': 1518, 'bore': 1519, 'escape': 1520, 'partially': 1521, 'impregnated': 1522, 'screwdriver': 1523, 'produces': 1524, 'contaminated': 1525, 'repair': 1526, 'receiving': 1527, 'causes': 1528, 'limb': 1529, 'seeing': 1530, 'vazante': 1531, 'mata': 1532, 'serra': 1533, 'garrote': 1534, 'srs': 1535, 'leandro': 1536, 'jehovnio': 1537, 'shallow': 1538, 'carton': 1539, 'possible': 1540, 'looking': 1541, 'ss': 1542, 'breno': 1543, 'consequently': 1544, 'belly': 1545, 'jehovah': 1546, 'torch': 1547, 'rupture': 1548, 'sloping': 1549, 'mask': 1550, 'visit': 1551, 'approaches': 1552, 'manhole': 1553, 'lowered': 1554, 'cloths': 1555, 'hoist': 1556, 'potions': 1557, 'elbow': 1558, 'reported': 1559, 'filtration': 1560, 'rd': 1561, 'sudden': 1562, 'excoriation': 1563, 'bodeguero': 1564, 'convoy': 1565, 'foam': 1566, 'residues': 1567, 'bin': 1568, 'fabio': 1569, 'rubbing': 1570, 'distributor': 1571, 'spilled': 1572, 'effort': 1573, 't': 1574, 'resident': 1575, 'picking': 1576, 'initiating': 1577, 'rlc': 1578, 'dump': 1579, 'retiring': 1580, 'hears': 1581, 'attempt': 1582, 'propeller': 1583, 'barel': 1584, 'originating': 1585, 'barretilla': 1586, 'incimmet': 1587, 'corrugated': 1588, 'checked': 1589, 'leakage': 1590, 'ceiling': 1591, 'increase': 1592, 'lateral': 1593, 'volumetric': 1594, 'balloon': 1595, 'breaking': 1596, 'imprisoning': 1597, 'services': 1598, 'observed': 1599, 'few': 1600, 'steam': 1601, 'above': 1602, 'ustulador': 1603, 'pocket': 1604, 'strut': 1605, 'particle': 1606, 'cars': 1607, 'anfoloader': 1608, 'mxmxm': 1609, 'cutter': 1610, 'walrus': 1611, 'bap': 1612, 'hrs': 1613, 'eliseo': 1614, 'respirator': 1615, 'tecnomin': 1616, 'belts': 1617, 'cep': 1618, 'epp': 1619, 'lyner': 1620, 'tether': 1621, 'freed': 1622, 'descended': 1623, 'ronald': 1624, 'lighthouse': 1625, 'catching': 1626, 'luna': 1627, 'cruiser': 1628, 'pentacord': 1629, 'fanel': 1630, 'deslaminadora': 1631, 'stacking': 1632, 'requires': 1633, 'mollares': 1634, 'helps': 1635, 'brushed': 1636, 'mollaress': 1637, 'cluster': 1638, 'sleepers': 1639, 'protruded': 1640, 'submerged': 1641, 'preuse': 1642, 'plastic': 1643, 'label': 1644, 'labeling': 1645, 'sip': 1646, 'enough': 1647, 'esengrasante': 1648, 'machinery': 1649, 'low': 1650, 'toxicity': 1651, 'testimony': 1652, 'boxes': 1653, 'bonsucesso': 1654, 'research': 1655, 'geosol': 1656, 'parts': 1657, 'trestles': 1658, 'lucas': 1659, 'ltda': 1660, 'maintaining': 1661, 'overlap': 1662, 'coordinate': 1663, 'nonsustained': 1664, 'bounce': 1665, 'concreting': 1666, 'mangote': 1667, 'inferior': 1668, 'hematoma': 1669, 'mrio': 1670, 'partners': 1671, 'killer': 1672, 'manitou': 1673, 'wheelbarrow': 1674, 'shaking': 1675, 'pants': 1676, 'scorpion': 1677, 'becker': 1678, 'screw': 1679, 'exerted': 1680, 'combination': 1681, 'strength': 1682, 'threw': 1683, 'eyelash': 1684, 'afo': 1685, 'launching': 1686, 'bonifacio': 1687, 'robot': 1688, 'emptiness': 1689, 'enoc': 1690, 'sensation': 1691, 'correctly': 1692, 'blaster': 1693, 'cutblunt': 1694, 'packaging': 1695, 'cylindrical': 1696, 'radiator': 1697, 'wear': 1698, 'warman': 1699, 'lxbb': 1700, 'collecting': 1701, 'milton': 1702, 'symptoms': 1703, 'rhainer': 1704, 'object': 1705, 'thus': 1706, 'pierce': 1707, 'possibly': 1708, 'pasture': 1709, 'recently': 1710, 'residence': 1711, 'manipulate': 1712, 'big': 1713, 'bioxide': 1714, 'leads': 1715, 'splashed': 1716, 'fissure': 1717, 'subsequently': 1718, 'lance': 1719, 'deslaminator': 1720, 'lowers': 1721, 'locks': 1722, 'detecting': 1723, 'manipulator': 1724, 'arrange': 1725, 'activation': 1726, 'piping': 1727, 'uncoupled': 1728, 'sulfide': 1729, 'designed': 1730, 'ambulatory': 1731, 'grams': 1732, 'liter': 1733, 'deconcentrates': 1734, 'releases': 1735, 'victalica': 1736, 'copla': 1737, 'draining': 1738, 'ammonia': 1739, 'refrigerant': 1740, 'drained': 1741, 'reinforce': 1742, 'forms': 1743, 'deepening': 1744, 'walked': 1745, 'distant': 1746, 'flexes': 1747, 'workermechanic': 1748, 'toecap': 1749, 'denis': 1750, 'imbalance': 1751, 'manipulation': 1752, 'propicindose': 1753, 'shuttering': 1754, 'sedimentation': 1755, 'nailing': 1756, 'supplies': 1757, 'fix': 1758, 'vertically': 1759, 'mini': 1760, 'adapter': 1761, 'utensil': 1762, 'stir': 1763, 'cooker': 1764, 'maestranza': 1765, 'bench': 1766, 'lining': 1767, 'install': 1768, 'skip': 1769, 'verifies': 1770, 'everything': 1771, 'restart': 1772, 'apparent': 1773, 'crosses': 1774, 'clothes': 1775, 'bypass': 1776, 'raul': 1777, 'bolting': 1778, 'rolando': 1779, 'retired': 1780, 'helical': 1781, 'pink': 1782, 'overhanging': 1783, 'rises': 1784, 'cruz': 1785, 'shipment': 1786, 'cross': 1787, 'rigger': 1788, 'racks': 1789, 'fabrics': 1790, 'polymer': 1791, 'maslucan': 1792, 'fragmentos': 1793, 'hs': 1794, 'warley': 1795, 'workplace': 1796, 'starts': 1797, 'reverse': 1798, 'fully': 1799, 'brakes': 1800, 'closes': 1801, 'fisherman': 1802, 'developing': 1803, 'whiplash': 1804, 'hycrontype': 1805, 'xcm': 1806, 'able': 1807, 'scaler': 1808, 'restricts': 1809, 'ball': 1810, 'humped': 1811, 'eriks': 1812, 'pole': 1813, 'tecl': 1814, 'stairs': 1815, 'observe': 1816, 'jhon': 1817, 'inchancable': 1818, 'changing': 1819, 'feeding': 1820, 'primary': 1821, 'automatic': 1822, 'sampler': 1823, 'abratech': 1824, 'putty': 1825, 'conditioning': 1826, 'platforms': 1827, 'hyt': 1828, 'tick': 1829, 'worked': 1830, 'dragging': 1831, 'grate': 1832, 'diagonal': 1833, 'crouching': 1834, 'marked': 1835, 'tape': 1836, 'lookout': 1837, 'colleague': 1838, 'spare': 1839, 'each': 1840, 'r': 1841, 'stroke': 1842, 'jibs': 1843, 'jib': 1844, 'enforce': 1845, 'piston': 1846, 'bo': 1847, 'photos': 1848, 'subsequent': 1849, 'silver': 1850, 'concentrate': 1851, 'afterwards': 1852, 'latter': 1853, 'share': 1854, 'equally': 1855, 'weighs': 1856, 'spoiler': 1857, 'kneeling': 1858, 'squatting': 1859, 'rotor': 1860, 'mallet': 1861, 'cia': 1862, 'stacker': 1863, 'sardinel': 1864, 'beehive': 1865, 'excited': 1866, 'geologo': 1867, 'elismar': 1868, 'seven': 1869, 'soquet': 1870, 'bhb': 1871, 'penultimate': 1872, 'hexagonal': 1873, 'cristbal': 1874, 'exert': 1875, 'dado': 1876, 'rotate': 1877, 'anticlockwise': 1878, 'rampa': 1879, 'xxx': 1880, 'carousel': 1881, 'roy': 1882, 'canario': 1883, 'ft': 1884, 'transporting': 1885, 'consultant': 1886, 'invaded': 1887, 'civilian': 1888, 'sharply': 1889, 'melt': 1890, 'inthinc': 1891, 'width': 1892, 'cones': 1893, 'isidro': 1894, 'torres': 1895, 'standardization': 1896, 'despite': 1897, 'spatters': 1898, 'facila': 1899, 'hood': 1900, 'topographic': 1901, 'west': 1902, 'walks': 1903, 'sccop': 1904, 'takes': 1905, 'food': 1906, 'containers': 1907, 'dimensions': 1908, 'pinking': 1909, 'tabola': 1910, 'aligning': 1911, 'applied': 1912, 'tirford': 1913, 'tn': 1914, 'overcoming': 1915, 'resistance': 1916, 'lineman': 1917, 'reshaping': 1918, 'beating': 1919, 'conchucos': 1920, 'ancash': 1921, 'participating': 1922, 'patronal': 1923, 'feast': 1924, 'representing': 1925, 'ceremony': 1926, 'fruits': 1927, 'toys': 1928, 'attending': 1929, 'public': 1930, 'pyrotechnics': 1931, 'gifts': 1932, 'frightened': 1933, 'kicked': 1934, 'limbs': 1935, 'hoe': 1936, 'abdomen': 1937, 'frank': 1938, 'individual': 1939, 'aggregates': 1940, 'cast': 1941, 'fogging': 1942, 'chooses': 1943, 'comfort': 1944, 'el': 1945, 'porvenir': 1946, 'accretion': 1947, 'pique': 1948, 'jobs': 1949, 'electricians': 1950, 'repulping': 1951, 'soiling': 1952, 'obstructing': 1953, 'vision': 1954, 'foundry': 1955, 'zamac': 1956, 'ingots': 1957, 'packages': 1958, 'footwear': 1959, 'former': 1960, 'ematoma': 1961, 'paste': 1962, 'vacuum': 1963, 'reduce': 1964, 'kept': 1965, 'void': 1966, 'juveni': 1967, 'dizziness': 1968, 'faintness': 1969, 'concussion': 1970, 'connecting': 1971, 'intention': 1972, 'desanding': 1973, 'stretched': 1974, 'superciliary': 1975, 'accompanying': 1976, 'mixed': 1977, 'attributing': 1978, 'welders': 1979, 'emptying': 1980, 'dosage': 1981, 'generated': 1982, 'alimakero': 1983, 'untie': 1984, 'spark': 1985, 'fragmented': 1986, 'formerly': 1987, 'yard': 1988, 'signals': 1989, 'retire': 1990, 'half': 1991, 'chair': 1992, 'stumbles': 1993, 'grille': 1994, 'gallons': 1995, 'rails': 1996, 'derailed': 1997, 'trapped': 1998, 'bruised': 1999, 'leathertype': 2000, 'sta': 2001, 'rushed': 2002, 'sketched': 2003, 'brjcldd': 2004, 'servitecforaco': 2005, 'josimar': 2006, 'fish': 2007, 'curl': 2008, 'abrupt': 2009, 'suture': 2010, 'applicable': 2011, 'informed': 2012, 'scruber': 2013, 'feed': 2014, 'officials': 2015, 'georli': 2016, 'initiated': 2017, 'procedures': 2018, 'tqs': 2019, 'jaw': 2020, 'wedge': 2021, 'crusher': 2022, 'br': 2023, 'device': 2024, 'overhead': 2025, '46': 2026, 'csar': 2027, 'receive': 2028, 'romn': 2029, 'approach': 2030, 'pedestal': 2031, 'planning': 2032, 'arranging': 2033, 'flexible': 2034, 'watered': 2035, 'fired': 2036, 'itself': 2037, 'deteriorated': 2038, 'paralysis': 2039, 'scare': 2040, 'within': 2041, 'poll': 2042, 'jack': 2043, 'holds': 2044, 'entire': 2045, 'procedure': 2046, 'effective': 2047, 'inefficacy': 2048, 'done': 2049, 'chestnut': 2050, 'monkey': 2051, 'prepared': 2052, 'faucet': 2053, 'firmly': 2054, 'composition': 2055, 'stems': 2056, 'sutured': 2057, 'stitches': 2058, 'claudio': 2059, 'readjusted': 2060, 'nuts': 2061, 'generate': 2062, 'greater': 2063, 'torque': 2064, 'wilber': 2065, 'laceration': 2066, 'peeling': 2067, 'chirodactile': 2068, 'assisting': 2069, 'moths': 2070, 'sunglasses': 2071, 'marimbondos': 2072, 'we': 2073, 'drove': 2074, 'medicine': 2075, 'situations': 2076, 'further': 2077, 'also': 2078, 'good': 2079, 'lavras': 2080, 'sul': 2081, 'consulted': 2082, 'concentrator': 2083, 'flotation': 2084, 'pb': 2085, 'leans': 2086, 'existence': 2087, 'lloclla': 2088, 'hill': 2089, 'aforementioned': 2090, 'tyrfor': 2091, 'tightened': 2092, 'eyebolt': 2093, 'click': 2094, 'transversely': 2095, 'tirfor': 2096, 'module': 2097, 'camp': 2098, 'grabbed': 2099, 'laundry': 2100, 'transverse': 2101, 'averaging': 2102, 'daniel': 2103, 'jesus': 2104, 'shooting': 2105, 'applying': 2106, 'realizes': 2107, 'directing': 2108, 'passage': 2109, 'became': 2110, 'composing': 2111, 'consisted': 2112, 'touched': 2113, 'tucum': 2114, 'piercing': 2115, 'told': 2116, 'teammate': 2117, 'spine': 2118, 'waxed': 2119, 'porangatu': 2120, 'health': 2121, 'brushcutters': 2122, 'stone': 2123, 'cutoff': 2124, 'unloaded': 2125, 'ignited': 2126, 'thrust': 2127, 'accumulating': 2128, 'dismount': 2129, 'tell': 2130, 'look': 2131, 'find': 2132, 'shining': 2133, 'deceased': 2134, 'give': 2135, 'supervisory': 2136, 'bines': 2137, 'tenth': 2138, 'pistons': 2139, 'fines': 2140, 'cmxcm': 2141, 'rolls': 2142, 'zero': 2143, 'temporary': 2144, 'sought': 2145, 'cue': 2146, 'burst': 2147, 'thunderous': 2148, 'psi': 2149, 'stacked': 2150, 'tires': 2151, 'night': 2152, 'none': 2153, 'damage': 2154, 'ssomac': 2155, 'enmicadas': 2156, 'pages': 2157, 'yolk': 2158, 'willing': 2159, 'displace': 2160, 'adhered': 2161, 'grazing': 2162, 'knuckles': 2163, 'tubo': 2164, 'uncover': 2165, 'jetanol': 2166, 'rise': 2167, 'prils': 2168, 'anfo': 2169, 'excess': 2170, 'siemag': 2171, 'piquero': 2172, 'civil': 2173, 'looked': 2174, 'incentration': 2175, 'hinge': 2176, 'consequence': 2177, 'bathroom': 2178, 'production': 2179, 'clogging': 2180, 'ejecting': 2181, 'detritus': 2182, 'launched': 2183, 'obb': 2184, 'finishing': 2185, 'albertico': 2186, 'jhony': 2187, 'cockpit': 2188, 'launcher': 2189, 'hastial': 2190, 'labor': 2191, 'antnio': 2192, 'trainee': 2193, 'planamieto': 2194, 'amount': 2195, 'notebook': 2196, 'inspecting': 2197, 'stepping': 2198, 'difficult': 2199, 'notes': 2200, 'electrolyte': 2201, 'hydrojet': 2202, 'obstruction': 2203, 'residue': 2204, 'actuating': 2205, 'pedal': 2206, 'ajg': 2207, 'missing': 2208, 'gearbox': 2209, 'respond': 2210, 'die': 2211, 'pead': 2212, 'geomembrane': 2213, 'weld': 2214, 'seam': 2215, 'extruder': 2216, 'stylet': 2217, 'rocks': 2218, 'if': 2219, 'pricked': 2220, 'future': 2221, 'portion': 2222, 'beetle': 2223, 'manifested': 2224, 'developed': 2225, 'collar': 2226, 'shirt': 2227, 'shield': 2228, 'meshes': 2229, 'gables': 2230, 'portable': 2231, 'hanging': 2232, 'bundle': 2233, 'environmental': 2234, 'swarming': 2235, 'weevils': 2236, 'endured': 2237, 'mount': 2238, 'polypropylene': 2239, 'pickup': 2240, 'wila': 2241, 'prong': 2242, 'samples': 2243, 'auxiliar': 2244, 'divert': 2245, 'diversion': 2246, 'marimbondo': 2247, 'giving': 2248, 'thugs': 2249, 'agitated': 2250, 'grinding': 2251, 'triangular': 2252, 'shaped': 2253, 'injuring': 2254, 'tq': 2255, 'fuses': 2256, 'energized': 2257, 'marking': 2258, 'breeders': 2259, 'surveying': 2260, 'measurements': 2261, 'fastening': 2262, 'aggregate': 2263, 'misalignment': 2264, 'scraper': 2265, 'building': 2266, 'cinnamon': 2267, 'nipple': 2268, 'lime': 2269, 'reactive': 2270, 'flexing': 2271, 'upward': 2272, 'spume': 2273, 'electrometallurgy': 2274, 'code': 2275, 'ele': 2276, 'abb': 2277, 'lubricating': 2278, 'alfredo': 2279, 'correcting': 2280, 'lubricants': 2281, 'reference': 2282, 'attrition': 2283, 'saying': 2284, 'ago': 2285, 'heat': 2286, 'exchangers': 2287, 'defined': 2288, 'skin': 2289, 'sulfates': 2290, 'eustaquio': 2291, 'luxofractures': 2292, 'tk': 2293, 'taque': 2294, 'disengaged': 2295, 'loosening': 2296, 'bouncing': 2297, 'stope': 2298, 'obstruct': 2299, 'direct': 2300, 'corridor': 2301, 'square': 2302, 'reinstallation': 2303, 'sectioned': 2304, 'tapped': 2305, 'sickle': 2306, 'vine': 2307, 'liana': 2308, 'ruptured': 2309, 'milling': 2310, 'cyclones': 2311, 'iscmg': 2312, 'decreasing': 2313, 'manuel': 2314, 'disconnection': 2315, 'manco': 2316, 'streets': 2317, 'cajamarquilla': 2318, 'simba': 2319, 'mc': 2320, 'ith': 2321, 'bit': 2322, 'withdrawing': 2323, 'paid': 2324, 'flat': 2325, 'beak': 2326, 'lxpb': 2327, 'silicate': 2328, 'warrin': 2329, 'cracking': 2330, 'inlet': 2331, 'laminator': 2332, 'preventive': 2333, 'roller': 2334, 'warps': 2335, 'these': 2336, 'proximal': 2337, 'review': 2338, 'sanding': 2339, 'spun': 2340, 'fernando': 2341, 'hardened': 2342, 'stake': 2343, 'presses': 2344, 'attendants': 2345, 'compartment': 2346, 'classification': 2347, 'litter': 2348, 'mechanized': 2349, 'drum': 2350, 'displaces': 2351, 'fuel': 2352, 'faneles': 2353, 'slow': 2354, 'wick': 2355, 'finish': 2356, 'disintegrates': 2357, 'foliage': 2358, 'leucenas': 2359, 'disposal': 2360, 'walls': 2361, 'formed': 2362, 'energize': 2363, 'v': 2364, 'thermomagnetic': 2365, 'shell': 2366, 'adjusted': 2367, 'ja': 2368, 'registered': 2369, 'carpentry': 2370, 'diagnosis': 2371, 'prepares': 2372, 'sacrificial': 2373, 'shear': 2374, 'strained': 2375, 'casionndole': 2376, 'geologists': 2377, 'dos': 2378, 'santos': 2379, 'dayme': 2380, 'known': 2381, 'goat': 2382, 'jumped': 2383, 'managed': 2384, 'sweep': 2385, 'lajes': 2386, 'junior': 2387, 'costa': 2388, 'wounding': 2389, 'free': 2390, 'rhyming': 2391, 'caving': 2392, 'comedor': 2393, 'lemon': 2394, 'refurbishment': 2395, 'slaughter': 2396, 'jka': 2397, 'promptly': 2398, 'units': 2399, 'transported': 2400, 'outpatient': 2401, 'municipal': 2402, 'cyclone': 2403, 'duct': 2404, 'heel': 2405, 'wk': 2406, 'garit': 2407, 'chicrin': 2408, 'copilot': 2409, 'longer': 2410, 'drive': 2411, 'complaining': 2412, 'intense': 2413, 'lumbar': 2414, 'citing': 2415, 'overexertion': 2416, 'cylinders': 2417, 'stopper': 2418, 'mortar': 2419, 'improve': 2420, 'bricklayer': 2421, 'per': 2422, 'scaffold': 2423, 'sand': 2424, 'personal': 2425, 'breaker': 2426, 'settling': 2427, 'anthony': 2428, 'group': 2429, 'leader': 2430, 'eduardo': 2431, 'eric': 2432, 'fernndezinjuredthe': 2433, 'zaf': 2434, 'marcy': 2435, 'heating': 2436, 'enabled': 2437, 'winche': 2438, 'walk': 2439, 'sits': 2440, 'taking': 2441, 'importance': 2442, 'rest': 2443, 'derived': 2444, 'retreat': 2445, 'magnetometers': 2446, 'antenna': 2447, 'straight': 2448, 'report': 2449, 'progressive': 2450, 'superficially': 2451, 'calibrator': 2452, 'chuquillanqui': 2453, 'anchorage': 2454, 'anchoring': 2455, 'diamantina': 2456, 'xrd': 2457, 'bob': 2458, 'simultaneously': 2459, 'lack': 2460, 'securing': 2461, 'acc': 2462, 'arrives': 2463, 'verification': 2464, 'confirming': 2465, 'problem': 2466, 'downwards': 2467, 'atricion': 2468, 'pivot': 2469, 'gauge': 2470, 'cycle': 2471, 'jackleg': 2472, 'tunel': 2473, 'stationed': 2474, 'abutment': 2475, 'stirrup': 2476, 'should': 2477, 'noted': 2478, 'watch': 2479, 'extraction': 2480, 'security': 2481, 'outside': 2482, 'stoppage': 2483, 'fright': 2484, 'pendulum': 2485, 'tellomoinsac': 2486, 'vanishes': 2487, 'stripping': 2488, 'cathodes': 2489, 'painting': 2490, 'involuntarily': 2491, 'touches': 2492, 'rub': 2493, 'period': 2494, 'seconds': 2495, 'continuously': 2496, 'bapdd': 2497, 'polling': 2498, 'led': 2499, 'suitably': 2500, 'resulted': 2501, 'thinner': 2502, 'flammable': 2503, 'oxides': 2504, 'expedition': 2505, 'overalls': 2506, 'habilitation': 2507, 'kitchen': 2508, 'specific': 2509, 'infrastructure': 2510, 'office': 2511, 'julio': 2512, 'toilets': 2513, 'bra': 2514, 'doosan': 2515, 'rb': 2516, 'suspenders': 2517, 'embedding': 2518, 'discharging': 2519, 'hydroxide': 2520, 'disconnecting': 2521, 'demineralization': 2522, 'sensor': 2523, 'virdro': 2524, 'new': 2525, 'evaporator': 2526, 'treatment': 2527, 'fixings': 2528, 'herself': 2529, 'unbalancing': 2530, 'completing': 2531, 'backhoe': 2532, 'moon': 2533, 'facial': 2534, 'mv': 2535, 'sees': 2536, 'congestion': 2537, 'why': 2538, 'fender': 2539, 'wilmer': 2540, 'drying': 2541, 'placement': 2542, 'introduced': 2543, 'purification': 2544, 'grab': 2545, 'bigbags': 2546, 'containing': 2547, 'waelz': 2548, 'oxide': 2549, 'hoistings': 2550, 'lowvoltage': 2551, 'contacting': 2552, 'attaching': 2553, 'bigbag': 2554, 'pablo': 2555, 'shockbearing': 2556, 'sledgehammer': 2557, 'stepladder': 2558, 'francisco': 2559, 'lectrowelded': 2560, 'eyebrow': 2561, 'grs': 2562, 'burr': 2563, 'screws': 2564, 'quirodactilo': 2565, 'sitting': 2566, 'illness': 2567, 'location': 2568, 'bends': 2569, 'derails': 2570, 'advances': 2571, 'paralyzes': 2572, 'winemaker': 2573, 'withdrew': 2574, 'ajax': 2575, 'spoon': 2576, 'slag': 2577, 'melting': 2578, 'zn': 2579, 'operated': 2580, 'loaded': 2581, 'advancing': 2582, 'motorist': 2583, 'bruises': 2584, 'woman': 2585, 'circuit': 2586, 'vms': 2587, 'xixs': 2588, 'stinging': 2589, 'play': 2590, 'visibility': 2591, 'woods': 2592, 'hissing': 2593, 'ripped': 2594, 'tangled': 2595, 'branches': 2596, 'kevin': 2597, 'subjection': 2598, 'achieving': 2599, 'semikneeling': 2600, 'debris': 2601, 'extra': 2602, 'muscle': 2603, 'scheduled': 2604, 'almost': 2605, 'supervise': 2606, 'anchored': 2607, 'harness': 2608, 'accessory': 2609, 'flanges': 2610, 'tailings': 2611, 'servant': 2612, 'dishes': 2613, 'bowl': 2614, 'chiropactyl': 2615, 'contents': 2616, 'evacuate': 2617, 'cooking': 2618, 'jaba': 2619, 'tilts': 2620, 'ml': 2621, 'cooks': 2622, 'cook': 2623, 'applies': 2624, 'pouring': 2625, 'cold': 2626, 'elevation': 2627, 'aerial': 2628, 'slimming': 2629, 'kiln': 2630, 'battery': 2631, 'began': 2632, 'crucible': 2633, 'ustulado': 2634, 'aeq': 2635, 'ton': 2636, 'tj': 2637, 'ydrs': 2638, 'large': 2639, 'shake': 2640, 'violently': 2641, 'communicate': 2642, 'directs': 2643, 'gaze': 2644, 'openings': 2645, 'sustaining': 2646, 'sacrifice': 2647, 'spillway': 2648, 'absorbent': 2649, 'atlas': 2650, 'axs': 2651, 'compressor': 2652, 'bonnet': 2653, 'functioning': 2654, 'rag': 2655, 'ompressor': 2656, 'fans': 2657, 'assemble': 2658, 'retracts': 2659, 'catheter': 2660, 'inclination': 2661, 'speart': 2662, 'lit': 2663, 'yaranga': 2664, 'juan': 2665, 'reacting': 2666, 'managing': 2667, 'offices': 2668, 'environment': 2669, 'creating': 2670, 'continuing': 2671, 'ribbon': 2672, 'shipping': 2673, 'hemiface': 2674, 'soft': 2675, 'starter': 2676, 'igor': 2677, 'discovered': 2678, 'carbon': 2679, 'band': 2680, 'uneven': 2681, 'distribution': 2682, 'emulsion': 2683, 'rp': 2684, 'street': 2685, 'ended': 2686, 'erasing': 2687, 'earthenware': 2688, 'alizado': 2689, 'ironing': 2690, 'tour': 2691, 'command': 2692, 'atriction': 2693, 'acl': 2694, 'raising': 2695, 'indexed': 2696, 'turntable': 2697, 'lm': 2698, 'needle': 2699, 'stem': 2700, 'retraction': 2701, 'oba': 2702, 'drills': 2703, 'ones': 2704, 'shotcreteados': 2705, 'detachments': 2706, 'banks': 2707, 'stumble': 2708, '44': 2709, 'reception': 2710, 'sure': 2711, 'keypad': 2712, 'manipulates': 2713, 'strips': 2714, 'resane': 2715, 'cruise': 2716, 'cubic': 2717, 'minutes': 2718, 'allow': 2719, 'adhesion': 2720, 'restarting': 2721, 'assume': 2722, 'fallen': 2723, 'job': 2724, 'response': 2725, 'death': 2726, 'investigation': 2727, 'inchancables': 2728, 'attempts': 2729, 'rake': 2730, 'mario': 2731, 'caustic': 2732, 'soda': 2733, 'containment': 2734, 'formation': 2735, 'technical': 2736, 'paused': 2737, 'know': 2738, 'weed': 2739, 'communication': 2740, 'distanced': 2741, 'visited': 2742, 'facilities': 2743, 'waiting': 2744, 'conducting': 2745, 'station': 2746, 'spills': 2747, 'wilder': 2748, 'gilton': 2749, 'introduce': 2750, 'introduces': 2751, 'dropping': 2752, 'persons': 2753, 'loosens': 2754, 'cardan': 2755, 'connector': 2756, 'steering': 2757, 'performer': 2758, 'ddh': 2759, 'explomin': 2760, 'socorro': 2761, 'drillerwas': 2762, 'dismantling': 2763, 'nq': 2764, 'rotates': 2765, 'efran': 2766, 'osorio': 2767, 'felix': 2768, 'mina': 2769, 'installed': 2770, 'nozzle': 2771, 'lung': 2772, 'violent': 2773, 'stun': 2774, 'produced': 2775, 'ex': 2776, 'quinoa': 2777, 'treads': 2778, 'laterally': 2779, 'duty': 2780, 'antonio': 2781, 'peristaltic': 2782, 'reserve': 2783, 'disrupted': 2784, 'operate': 2785, 'designing': 2786, 'refractory': 2787, 'brick': 2788, 'chopping': 2789, 'bus': 2790, 'usual': 2791, 'macedonio': 2792, 'link': 2793, 'shorten': 2794, 'injection': 2795, 'resin': 2796, 'affecting': 2797, 'powder': 2798, 'excessive': 2799, 'sprain': 2800, 'traffic': 2801, 'eusbio': 2802, 'braking': 2803, 'failed': 2804, 'hour': 2805, 'shotcreterepentinamente': 2806, 'superior': 2807, 'injures': 2808, 'rops': 2809, 'fops': 2810, 'helmets': 2811, 'polyontusions': 2812, 'scoria': 2813, 'unlock': 2814, 'cathodic': 2815, 'digger': 2816, 'realize': 2817, 'brapdd': 2818, 'mudswathed': 2819, 'medicated': 2820, 'unleashing': 2821, 'saturated': 2822, 'talus': 2823, 'crest': 2824, 'rugged': 2825, 'taut': 2826, 'crumbles': 2827, 'cheek': 2828, 'isolated': 2829, 'boom': 2830, 'drawing': 2831, 'jet': 2832, 'perceived': 2833, 'increases': 2834, 'inertia': 2835, 'ditch': 2836, 'estimated': 2837, 'drain': 2838, 'dune': 2839, 'accessing': 2840, 'novo': 2841, 'chop': 2842, 'manetometer': 2843, 'steep': 2844, 'gravel': 2845, 'certain': 2846, 'become': 2847, 'geology': 2848, 'temporarily': 2849, 'wide': 2850, 'stretches': 2851, 'boss': 2852, 'laden': 2853, 'curve': 2854, 'laquia': 2855, 'unevenness': 2856, 'overturning': 2857, 'squares': 2858, 'alcohotest': 2859, 'rolled': 2860, 'contained': 2861, 'reduction': 2862, 'untied': 2863, 'demister': 2864, 'cooling': 2865, 'blower': 2866, 'months': 2867, 'rapid': 2868, 'bothering': 2869, 'snack': 2870, 'coordinates': 2871, 'startup': 2872, 'mona': 2873, 'railway': 2874, 'rocker': 2875, 'conclusion': 2876, 'amp': 2877, 'stretch': 2878, 'hatch': 2879, 'surcharges': 2880, 'headlight': 2881, 'defective': 2882, 'hm': 2883, 'miguel': 2884, 'eka': 2885, 'traps': 2886, 'winery': 2887, 'chagua': 2888, 'wires': 2889, 'grinder': 2890, 'adapted': 2891, 'crosscutter': 2892, 'traumatic': 2893, 'amputation': 2894, 'hitchhiking': 2895, 'crossed': 2896, 'canterio': 2897, 'catch': 2898, 'opposite': 2899, 'alex': 2900, 'pickaxe': 2901, 'assist': 2902, 'ferranta': 2903, 'pre': 2904, 'estriping': 2905, 'bend': 2906, 'tranfer': 2907, 'exerts': 2908, 'transfe': 2909, 'volvo': 2910, 'oxicorte': 2911, 'soldering': 2912, 'extracting': 2913, 'vsd': 2914, 'lbs': 2915, 'freddy': 2916, 'mxm': 2917, 'timely': 2918, 'earth': 2919, 'changed': 2920, 'detachment': 2921, 'ambulance': 2922, 'you': 2923, 'baton': 2924, 'griff': 2925, 'unscrew': 2926, 'stabilizer': 2927, 'hiab': 2928, 'treading': 2929, 'povoado': 2930, 'vista': 2931, 'martinpole': 2932, 'ce': 2933, 'fbio': 2934, 'vieira': 2935, 'auxiliaries': 2936, 'diassis': 2937, 'nascimento': 2938, 'granja': 2939, 'consultation': 2940, 'diagnose': 2941, 'prescribing': 2942, 'remedy': 2943, 'ice': 2944, 'packs': 2945, 'centralizer': 2946, 'facilitate': 2947, 'accelerate': 2948, 'tightens': 2949, 'zinco': 2950, 'rotary': 2951, 'l': 2952, 'epis': 2953, 'roger': 2954, 'detaches': 2955, 'segment': 2956, 'polyurethane': 2957, 'rotated': 2958, 'compress': 2959, 'hip': 2960, 'blown': 2961, 'detaching': 2962, 'shipper': 2963, 'spatula': 2964, 'spear': 2965, 'windows': 2966, 'electrowelded': 2967, 'pvctype': 2968, 'adjusting': 2969, 'shapes': 2970, 'lifeline': 2971, 'transiting': 2972, 'cadmium': 2973, 'factory': 2974, 'sulphate': 2975}
In [ ]:
#length
len(t.word_index)
Out[ ]:
2975

Preparing training and test data¶

In [ ]:
X_train = t.texts_to_sequences(X_train.tolist())
X_test = t.texts_to_sequences(X_test.tolist())
In [ ]:
max_review_length=max(len(seq) for seq in X_train)
In [ ]:
max_review_length
Out[ ]:
215

Pad sequences¶

In [ ]:
X_train = tf.keras.preprocessing.sequence.pad_sequences(X_train,
                                                        maxlen=max_review_length,
                                                        padding='pre',
                                                        truncating='post')
X_test = tf.keras.preprocessing.sequence.pad_sequences(X_test,
                                                       maxlen=max_review_length,
                                                       padding='pre',
                                                       truncating='post')
In [ ]:
X_train.shape, X_test.shape
Out[ ]:
((334, 215), (84, 215))
In [ ]:
# Specify the file path where you want to save the pickled data
file_path = 'data_padded.pkl'

# Create a dictionary to hold all the data objects
data_dict = {'X_train': X_train, 'X_test': X_test, 'y_train': y_train, 'y_test': y_test}

# Pickle the data dictionary
with open(file_path, 'wb') as f:
    pickle.dump(data_dict, f)

Loading glove¶

In [ ]:
#glove_model = api.load('glove-wiki-gigaword-200')
In [ ]:
#pickle model for later use
#with open('glove_model.pkl', 'wb') as f:
#    pickle.dump(glove_model, f)

with open('glove_model.pkl', 'rb') as f:
    glove_model = pickle.load(f)

getting pre-trained embedding¶

In [ ]:
embedding_vector_length = glove_model.vector_size
embedding_vector_length
Out[ ]:
200
In [ ]:
#preparing embeeding matrix
embedding_matrix = np.zeros((desired_vocab_size + 1, embedding_vector_length))
In [ ]:
for word, i in sorted(t.word_index.items(),key=lambda x:x[1]):
    if i > (desired_vocab_size+1):
        break
    try:
        embedding_vector = glove_model[word] #Reading word's embedding from Glove model for a given word
        embedding_matrix[i] = embedding_vector
    except:
        pass
In [ ]:
embedding_matrix.shape
Out[ ]:
(10001, 200)
In [ ]:
#storing embeeding matrix
with open('glove_embeeding_matrix.pkl', 'wb') as f:
    pickle.dump(embedding_matrix, f)
In [ ]:
# Specify the file path from which to load the pickled data
file_path = 'data_padded.pkl'

# Load the pickled data dictionary
with open(file_path, 'rb') as f:
    data_dict = pickle.load(f)

# Extract X_train, X_test, y_train, and y_test from the data dictionary
X_train = data_dict['X_train']
X_test = data_dict['X_test']
y_train = data_dict['y_train']
y_test = data_dict['y_test']

with open('glove_model.pkl', 'rb') as f:
    glove_model = pickle.load(f)

embedding_vector_length = glove_model.vector_size

with open('glove_embeeding_matrix.pkl', 'rb') as f:
    embedding_matrix = pickle.load(f)

desired_vocab_size = 10000 #Vocablury size

max_review_length=max(len(seq) for seq in X_train)
In [ ]:
X_train.shape, X_test.shape, y_train.shape, y_test.shape
Out[ ]:
((334, 215), (84, 215), (334, 5), (84, 5))
In [51]:
def function_model(model_name,model, history, x_train, y_train, x_test, y_test):
  print('Model: ', model_name)

  #model.fit(x_train, y_train)

#y_pred=model.predict(x_test)
  y_pred_multiclass=model.predict(x_test)
  y_pred= np.argmax(y_pred_multiclass,axis=1)

  y_test=np.argmax(y_test,axis=1)


  train_accuracy_score= history.history['accuracy'][-1]
  test_accuracy_score=  history.history['val_accuracy'] [-1]

  print('Train Accuracy score: ', train_accuracy_score)
  print('Test Accuracy score: ', test_accuracy_score)

  cm=metrics.confusion_matrix(y_test, y_pred)
  cm=pd.DataFrame(cm)
  sns.heatmap(cm.T, annot=True, fmt='g', cbar=False);
  plt.title('Test Confusion Matrix')
  plt.xlabel('Actual')
  plt.ylabel('Predicted')
  plt.show()

  print('Classification report')
  print(classification_report(y_test, y_pred))

  precision=precision_score(y_test, y_pred, average='weighted')
  recall=recall_score(y_test, y_pred, average='weighted')
  f1=f1_score(y_test, y_pred, average='weighted')

  #Plotting loss and accuracy for both the models
  fig, axes = plt.subplots(1, 2, figsize=(10, 5))
  fig.suptitle('Loss and Accuracy Model: '+ model_name)

  axes[0].plot(history.history['loss'], label='Training Loss')
  axes[0].plot(history.history['val_loss'], label='Validation Loss')
  axes[0].set_xlabel('Epochs')
  axes[0].set_ylabel('Loss')
  axes[0].set_title('Loss')
  axes[0].legend()

  axes[1].plot(history.history['accuracy'], label='Training Accuracy')
  axes[1].plot(history.history['val_accuracy'], label='Validation Accuracy')
  axes[1].set_xlabel('Epochs')
  axes[1].set_ylabel('Accuracy')
  axes[1].set_title('Accuracy')
  axes[1].legend()

  # Adjust spacing between subplots
  plt.tight_layout()

  # Show the subplots
  plt.show()

  #saving model
  model.save('./saved_models/' + model_name + '.h5')

  result=pd.DataFrame({ 'Model' : [model_name],
                 'Train Accuracy' : train_accuracy_score,
                 'Test Accuracy': test_accuracy_score,
                 'Precision': precision,
                 'recall' : recall,
                 'f1 score':f1
                })

  return result
In [ ]:
ann_model_summary=  pd.DataFrame()

Step 1: Design, train and test Neural networks classifiers¶

Trying 2 Dense layers¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(128, activation='relu'))
model.add(tf.keras.layers.Dense(64, activation='relu'))

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=20,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 128)               5504128   
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dense_2 (Dense)             (None, 5)                 325       
                                                                 
=================================================================
Total params: 7512909 (28.66 MB)
Trainable params: 5512709 (21.03 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/20
11/11 [==============================] - 2s 29ms/step - loss: 1.2662 - accuracy: 0.6856 - val_loss: 1.0780 - val_accuracy: 0.7381
Epoch 2/20
11/11 [==============================] - 0s 8ms/step - loss: 0.5020 - accuracy: 0.8263 - val_loss: 1.2275 - val_accuracy: 0.7143
Epoch 3/20
11/11 [==============================] - 0s 7ms/step - loss: 0.1845 - accuracy: 0.9461 - val_loss: 1.5901 - val_accuracy: 0.7024
Epoch 4/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0608 - accuracy: 0.9910 - val_loss: 1.8869 - val_accuracy: 0.7262
Epoch 5/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0282 - accuracy: 0.9970 - val_loss: 1.9997 - val_accuracy: 0.6905
Epoch 6/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0181 - accuracy: 0.9970 - val_loss: 2.1362 - val_accuracy: 0.7024
Epoch 7/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0130 - accuracy: 0.9970 - val_loss: 2.2660 - val_accuracy: 0.7024
Epoch 8/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0090 - accuracy: 0.9940 - val_loss: 2.3503 - val_accuracy: 0.7024
Epoch 9/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0083 - accuracy: 0.9970 - val_loss: 2.3946 - val_accuracy: 0.7024
Epoch 10/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0097 - accuracy: 0.9970 - val_loss: 2.3930 - val_accuracy: 0.7024
Epoch 11/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0082 - accuracy: 0.9940 - val_loss: 2.4345 - val_accuracy: 0.7024
Epoch 12/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0070 - accuracy: 0.9940 - val_loss: 2.4755 - val_accuracy: 0.7024
Epoch 13/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0067 - accuracy: 0.9940 - val_loss: 2.5074 - val_accuracy: 0.7024
Epoch 14/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0073 - accuracy: 0.9970 - val_loss: 2.5411 - val_accuracy: 0.7024
Epoch 15/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0084 - accuracy: 0.9940 - val_loss: 2.5630 - val_accuracy: 0.7024
Epoch 16/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0107 - accuracy: 0.9970 - val_loss: 2.5719 - val_accuracy: 0.7024
Epoch 17/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0053 - accuracy: 0.9970 - val_loss: 2.6160 - val_accuracy: 0.7024
Epoch 18/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0092 - accuracy: 0.9970 - val_loss: 2.6492 - val_accuracy: 0.7024
Epoch 19/20
11/11 [==============================] - 0s 7ms/step - loss: 0.0074 - accuracy: 0.9970 - val_loss: 2.6485 - val_accuracy: 0.7024
Epoch 20/20
11/11 [==============================] - 0s 8ms/step - loss: 0.0060 - accuracy: 0.9970 - val_loss: 2.6688 - val_accuracy: 0.7024
In [ ]:
result=function_model("ANN_2_Layers",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
WARNING:tensorflow:5 out of the last 16 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7eef28f22680> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for  more details.
Model:  ANN_2_Layers
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.9970059990882874
Test Accuracy score:  0.7023809552192688
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.95      0.83        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.70        84
   macro avg       0.15      0.19      0.17        84
weighted avg       0.54      0.70      0.61        84

No description has been provided for this image

Trying 3 Dense layers¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(256, activation='relu', input_shape=()))
model.add(tf.keras.layers.Dense(128, activation='relu', input_shape=()))
model.add(tf.keras.layers.Dense(64, activation='relu'))

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=20,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dense_3 (Dense)             (None, 5)                 325       
                                                                 
=================================================================
Total params: 13049933 (49.78 MB)
Trainable params: 11049733 (42.15 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/20
11/11 [==============================] - 1s 26ms/step - loss: 1.1163 - accuracy: 0.6677 - val_loss: 1.0312 - val_accuracy: 0.7262
Epoch 2/20
11/11 [==============================] - 0s 9ms/step - loss: 0.4401 - accuracy: 0.8563 - val_loss: 1.3677 - val_accuracy: 0.7143
Epoch 3/20
11/11 [==============================] - 0s 9ms/step - loss: 0.1199 - accuracy: 0.9641 - val_loss: 1.6914 - val_accuracy: 0.6786
Epoch 4/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0328 - accuracy: 0.9940 - val_loss: 2.1566 - val_accuracy: 0.6905
Epoch 5/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0166 - accuracy: 0.9970 - val_loss: 2.3777 - val_accuracy: 0.7143
Epoch 6/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0170 - accuracy: 0.9970 - val_loss: 2.6310 - val_accuracy: 0.7143
Epoch 7/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0097 - accuracy: 0.9970 - val_loss: 2.5882 - val_accuracy: 0.7143
Epoch 8/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0093 - accuracy: 0.9940 - val_loss: 2.6457 - val_accuracy: 0.7143
Epoch 9/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0068 - accuracy: 0.9970 - val_loss: 2.6998 - val_accuracy: 0.7143
Epoch 10/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0077 - accuracy: 0.9970 - val_loss: 2.7270 - val_accuracy: 0.7143
Epoch 11/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0083 - accuracy: 0.9940 - val_loss: 2.7438 - val_accuracy: 0.7143
Epoch 12/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0060 - accuracy: 0.9940 - val_loss: 2.7658 - val_accuracy: 0.7143
Epoch 13/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0057 - accuracy: 0.9940 - val_loss: 2.7869 - val_accuracy: 0.7143
Epoch 14/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0066 - accuracy: 0.9970 - val_loss: 2.8233 - val_accuracy: 0.7143
Epoch 15/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0075 - accuracy: 0.9940 - val_loss: 2.8534 - val_accuracy: 0.7143
Epoch 16/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0098 - accuracy: 0.9970 - val_loss: 2.8754 - val_accuracy: 0.7143
Epoch 17/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0049 - accuracy: 0.9970 - val_loss: 2.8925 - val_accuracy: 0.7143
Epoch 18/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0065 - accuracy: 0.9970 - val_loss: 2.9110 - val_accuracy: 0.7143
Epoch 19/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0058 - accuracy: 0.9970 - val_loss: 2.9276 - val_accuracy: 0.7143
Epoch 20/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0062 - accuracy: 0.9970 - val_loss: 2.9275 - val_accuracy: 0.7143
In [ ]:
result=function_model("ANN_3_Layers",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
WARNING:tensorflow:5 out of the last 13 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7ef02bb2eb90> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for  more details.
Model:  ANN_3_Layers
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.9970059990882874
Test Accuracy score:  0.7142857313156128
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.97      0.84        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.71        84
   macro avg       0.15      0.19      0.17        84
weighted avg       0.55      0.71      0.62        84

No description has been provided for this image

Trying with 4 Dense layer¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(256, activation='relu'))
model.add(tf.keras.layers.Dense(128, activation='relu'))
model.add(tf.keras.layers.Dense(64, activation='relu'))
model.add(tf.keras.layers.Dense(32, activation='relu'))

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=20,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dense_4 (Dense)             (None, 5)                 165       
                                                                 
=================================================================
Total params: 13051853 (49.79 MB)
Trainable params: 11051653 (42.16 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/20
11/11 [==============================] - 2s 26ms/step - loss: 1.1408 - accuracy: 0.6617 - val_loss: 1.0030 - val_accuracy: 0.7381
Epoch 2/20
11/11 [==============================] - 0s 9ms/step - loss: 0.6880 - accuracy: 0.7545 - val_loss: 1.1337 - val_accuracy: 0.7143
Epoch 3/20
11/11 [==============================] - 0s 10ms/step - loss: 0.2820 - accuracy: 0.8982 - val_loss: 1.5576 - val_accuracy: 0.6786
Epoch 4/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0979 - accuracy: 0.9760 - val_loss: 1.8822 - val_accuracy: 0.6190
Epoch 5/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0378 - accuracy: 0.9910 - val_loss: 2.4038 - val_accuracy: 0.7262
Epoch 6/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0202 - accuracy: 0.9970 - val_loss: 2.5923 - val_accuracy: 0.6786
Epoch 7/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0119 - accuracy: 0.9970 - val_loss: 2.6041 - val_accuracy: 0.6548
Epoch 8/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0168 - accuracy: 0.9970 - val_loss: 2.8196 - val_accuracy: 0.6429
Epoch 9/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0059 - accuracy: 0.9970 - val_loss: 3.1356 - val_accuracy: 0.7143
Epoch 10/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0245 - accuracy: 0.9970 - val_loss: 3.0195 - val_accuracy: 0.6905
Epoch 11/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0122 - accuracy: 0.9940 - val_loss: 2.9315 - val_accuracy: 0.6667
Epoch 12/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0058 - accuracy: 0.9970 - val_loss: 2.9015 - val_accuracy: 0.6548
Epoch 13/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0068 - accuracy: 0.9970 - val_loss: 2.9994 - val_accuracy: 0.6667
Epoch 14/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0068 - accuracy: 0.9940 - val_loss: 3.1102 - val_accuracy: 0.6905
Epoch 15/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0075 - accuracy: 0.9940 - val_loss: 3.1573 - val_accuracy: 0.6786
Epoch 16/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0080 - accuracy: 0.9970 - val_loss: 3.1122 - val_accuracy: 0.6786
Epoch 17/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0048 - accuracy: 0.9970 - val_loss: 3.1636 - val_accuracy: 0.6786
Epoch 18/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0052 - accuracy: 0.9970 - val_loss: 3.2000 - val_accuracy: 0.6786
Epoch 19/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0061 - accuracy: 0.9970 - val_loss: 3.2099 - val_accuracy: 0.6786
Epoch 20/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0052 - accuracy: 0.9970 - val_loss: 3.2856 - val_accuracy: 0.6786
In [ ]:
result=function_model("ANN_4_Layers",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_4_Layers
3/3 [==============================] - 0s 3ms/step
Train Accuracy score:  0.9970059990882874
Test Accuracy score:  0.6785714030265808
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.73      0.92      0.81        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.68        84
   macro avg       0.15      0.18      0.16        84
weighted avg       0.54      0.68      0.60        84

No description has been provided for this image

Trying with 5 Dense¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(256, activation='relu'))
model.add(tf.keras.layers.Dense(128, activation='relu'))
model.add(tf.keras.layers.Dense(64, activation='relu'))
model.add(tf.keras.layers.Dense(32, activation='relu'))
model.add(tf.keras.layers.Dense(16, activation='relu'))

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=20,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13052301 (49.79 MB)
Trainable params: 11052101 (42.16 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/20
11/11 [==============================] - 2s 38ms/step - loss: 1.0506 - accuracy: 0.7305 - val_loss: 0.9629 - val_accuracy: 0.7381
Epoch 2/20
11/11 [==============================] - 0s 13ms/step - loss: 0.7804 - accuracy: 0.7545 - val_loss: 1.1062 - val_accuracy: 0.7381
Epoch 3/20
11/11 [==============================] - 0s 14ms/step - loss: 0.4403 - accuracy: 0.8383 - val_loss: 1.4312 - val_accuracy: 0.7143
Epoch 4/20
11/11 [==============================] - 0s 14ms/step - loss: 0.2342 - accuracy: 0.9162 - val_loss: 1.7805 - val_accuracy: 0.6905
Epoch 5/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0973 - accuracy: 0.9790 - val_loss: 2.3665 - val_accuracy: 0.6190
Epoch 6/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0445 - accuracy: 0.9910 - val_loss: 2.7632 - val_accuracy: 0.7024
Epoch 7/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0189 - accuracy: 0.9940 - val_loss: 2.7869 - val_accuracy: 0.6548
Epoch 8/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0129 - accuracy: 0.9970 - val_loss: 3.1350 - val_accuracy: 0.6548
Epoch 9/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0084 - accuracy: 0.9970 - val_loss: 3.1108 - val_accuracy: 0.6548
Epoch 10/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0102 - accuracy: 0.9970 - val_loss: 3.1286 - val_accuracy: 0.6548
Epoch 11/20
11/11 [==============================] - 0s 12ms/step - loss: 0.0071 - accuracy: 0.9970 - val_loss: 3.2189 - val_accuracy: 0.6548
Epoch 12/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0059 - accuracy: 0.9970 - val_loss: 3.3147 - val_accuracy: 0.6548
Epoch 13/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0057 - accuracy: 0.9970 - val_loss: 3.3647 - val_accuracy: 0.6667
Epoch 14/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0055 - accuracy: 0.9970 - val_loss: 3.3732 - val_accuracy: 0.6667
Epoch 15/20
11/11 [==============================] - 0s 13ms/step - loss: 0.0056 - accuracy: 0.9970 - val_loss: 3.3903 - val_accuracy: 0.6786
Epoch 16/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0061 - accuracy: 0.9940 - val_loss: 3.4209 - val_accuracy: 0.6786
Epoch 17/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0049 - accuracy: 0.9970 - val_loss: 3.4711 - val_accuracy: 0.6786
Epoch 18/20
11/11 [==============================] - 0s 12ms/step - loss: 0.0051 - accuracy: 0.9970 - val_loss: 3.4664 - val_accuracy: 0.6786
Epoch 19/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0052 - accuracy: 0.9970 - val_loss: 3.4635 - val_accuracy: 0.6786
Epoch 20/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0058 - accuracy: 0.9970 - val_loss: 3.4964 - val_accuracy: 0.6786
In [ ]:
result=function_model("ANN_5_Layers",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers
3/3 [==============================] - 0s 3ms/step
Train Accuracy score:  0.9970059990882874
Test Accuracy score:  0.6785714030265808
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.73      0.92      0.81        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.68        84
   macro avg       0.15      0.18      0.16        84
weighted avg       0.54      0.68      0.60        84

No description has been provided for this image

Since Accuracy is increasing slightly lets try with 6 Dense layer

Trying with 6 Dense¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(256, activation='relu'))
model.add(tf.keras.layers.Dense(128, activation='relu'))
model.add(tf.keras.layers.Dense(64, activation='relu'))
model.add(tf.keras.layers.Dense(32, activation='relu'))
model.add(tf.keras.layers.Dense(16, activation='relu'))
model.add(tf.keras.layers.Dense(8, activation='relu'))

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=20,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dense_5 (Dense)             (None, 8)                 136       
                                                                 
 dense_6 (Dense)             (None, 5)                 45        
                                                                 
=================================================================
Total params: 13052397 (49.79 MB)
Trainable params: 11052197 (42.16 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/20
11/11 [==============================] - 3s 37ms/step - loss: 1.2964 - accuracy: 0.6108 - val_loss: 1.2037 - val_accuracy: 0.7381
Epoch 2/20
11/11 [==============================] - 0s 13ms/step - loss: 0.8462 - accuracy: 0.7485 - val_loss: 1.4580 - val_accuracy: 0.7381
Epoch 3/20
11/11 [==============================] - 0s 13ms/step - loss: 0.5815 - accuracy: 0.7725 - val_loss: 1.5697 - val_accuracy: 0.6905
Epoch 4/20
11/11 [==============================] - 0s 14ms/step - loss: 0.4251 - accuracy: 0.8084 - val_loss: 2.1614 - val_accuracy: 0.6905
Epoch 5/20
11/11 [==============================] - 0s 13ms/step - loss: 0.2998 - accuracy: 0.8623 - val_loss: 2.6142 - val_accuracy: 0.6905
Epoch 6/20
11/11 [==============================] - 0s 14ms/step - loss: 0.2170 - accuracy: 0.9311 - val_loss: 2.8402 - val_accuracy: 0.6310
Epoch 7/20
11/11 [==============================] - 0s 14ms/step - loss: 0.1132 - accuracy: 0.9701 - val_loss: 3.8847 - val_accuracy: 0.7024
Epoch 8/20
11/11 [==============================] - 0s 14ms/step - loss: 0.0655 - accuracy: 0.9790 - val_loss: 4.3818 - val_accuracy: 0.6310
Epoch 9/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0438 - accuracy: 0.9940 - val_loss: 4.9632 - val_accuracy: 0.6667
Epoch 10/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0468 - accuracy: 0.9850 - val_loss: 4.4887 - val_accuracy: 0.5357
Epoch 11/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0375 - accuracy: 0.9850 - val_loss: 6.0026 - val_accuracy: 0.7143
Epoch 12/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0257 - accuracy: 0.9880 - val_loss: 6.1980 - val_accuracy: 0.6548
Epoch 13/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0685 - accuracy: 0.9820 - val_loss: 6.0836 - val_accuracy: 0.6310
Epoch 14/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0708 - accuracy: 0.9820 - val_loss: 5.7914 - val_accuracy: 0.6071
Epoch 15/20
11/11 [==============================] - 0s 11ms/step - loss: 0.0932 - accuracy: 0.9790 - val_loss: 5.2912 - val_accuracy: 0.6190
Epoch 16/20
11/11 [==============================] - 0s 10ms/step - loss: 0.1530 - accuracy: 0.9581 - val_loss: 5.3843 - val_accuracy: 0.7381
Epoch 17/20
11/11 [==============================] - 0s 11ms/step - loss: 0.1909 - accuracy: 0.9431 - val_loss: 4.0989 - val_accuracy: 0.7024
Epoch 18/20
11/11 [==============================] - 0s 10ms/step - loss: 0.0613 - accuracy: 0.9820 - val_loss: 4.1826 - val_accuracy: 0.7143
Epoch 19/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0510 - accuracy: 0.9910 - val_loss: 4.9331 - val_accuracy: 0.6786
Epoch 20/20
11/11 [==============================] - 0s 9ms/step - loss: 0.0322 - accuracy: 0.9850 - val_loss: 5.3326 - val_accuracy: 0.6786
In [ ]:
result=function_model("ANN_6_Layers",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_6_Layers
3/3 [==============================] - 0s 3ms/step
Train Accuracy score:  0.985029935836792
Test Accuracy score:  0.6785714030265808
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.90      0.81        62
           1       0.00      0.00      0.00         8
           2       0.20      0.17      0.18         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.68        84
   macro avg       0.19      0.21      0.20        84
weighted avg       0.56      0.68      0.61        84

No description has been provided for this image

Since accuracy is detoriating, we will not add more Dense layers

In [ ]:
ann_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 ANN_2_Layers 1.00 0.70 0.54 0.70 0.61
1 ANN_3_Layers 1.00 0.71 0.55 0.71 0.62
2 ANN_4_Layers 1.00 0.68 0.54 0.68 0.60
3 ANN_5_Layers 1.00 0.68 0.54 0.68 0.60
4 ANN_6_Layers 0.99 0.68 0.56 0.68 0.61

Of the above models, ANN with 5 layers seems to be perfoming well, so lets explore by adding batchnormalization, dropout, early stopping, more epochs, etc

In [ ]:
ann_model_summary.to_pickle('ann_model_summary.pickle')

ANN-5 Layers Batchnormalization¶

In [ ]:
#preparing model

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential()

model.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model.add(tf.keras.layers.Flatten())

model.add(tf.keras.layers.Dense(256, activation='relu'))
model.add(tf.keras.layers.BatchNormalization())

model.add(tf.keras.layers.Dense(128, activation='relu'))
model.add(tf.keras.layers.BatchNormalization())

model.add(tf.keras.layers.Dense(64, activation='relu'))
model.add(tf.keras.layers.BatchNormalization())

model.add(tf.keras.layers.Dense(32, activation='relu'))
model.add(tf.keras.layers.BatchNormalization())

model.add(tf.keras.layers.Dense(16, activation='relu'))
model.add(tf.keras.layers.BatchNormalization())

model.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model summary
model.summary()


#Compile the model
model.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history=model.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=40,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/40
11/11 [==============================] - 4s 37ms/step - loss: 1.9650 - accuracy: 0.2066 - val_loss: 1.3007 - val_accuracy: 0.6786
Epoch 2/40
11/11 [==============================] - 0s 13ms/step - loss: 1.6417 - accuracy: 0.3144 - val_loss: 1.3260 - val_accuracy: 0.6071
Epoch 3/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4053 - accuracy: 0.4341 - val_loss: 1.3360 - val_accuracy: 0.5476
Epoch 4/40
11/11 [==============================] - 0s 12ms/step - loss: 1.2677 - accuracy: 0.5000 - val_loss: 1.4030 - val_accuracy: 0.5000
Epoch 5/40
11/11 [==============================] - 0s 12ms/step - loss: 1.1443 - accuracy: 0.6138 - val_loss: 1.4368 - val_accuracy: 0.4643
Epoch 6/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0808 - accuracy: 0.6766 - val_loss: 1.5016 - val_accuracy: 0.3452
Epoch 7/40
11/11 [==============================] - 0s 14ms/step - loss: 0.9712 - accuracy: 0.7335 - val_loss: 1.4803 - val_accuracy: 0.4167
Epoch 8/40
11/11 [==============================] - 0s 14ms/step - loss: 0.9009 - accuracy: 0.7934 - val_loss: 1.4188 - val_accuracy: 0.4643
Epoch 9/40
11/11 [==============================] - 0s 12ms/step - loss: 0.8306 - accuracy: 0.8293 - val_loss: 1.3924 - val_accuracy: 0.5119
Epoch 10/40
11/11 [==============================] - 0s 14ms/step - loss: 0.7692 - accuracy: 0.8473 - val_loss: 1.3292 - val_accuracy: 0.5595
Epoch 11/40
11/11 [==============================] - 0s 12ms/step - loss: 0.6997 - accuracy: 0.8952 - val_loss: 1.3142 - val_accuracy: 0.5595
Epoch 12/40
11/11 [==============================] - 0s 13ms/step - loss: 0.6386 - accuracy: 0.8952 - val_loss: 1.2820 - val_accuracy: 0.5357
Epoch 13/40
11/11 [==============================] - 0s 14ms/step - loss: 0.5771 - accuracy: 0.9251 - val_loss: 1.2673 - val_accuracy: 0.5952
Epoch 14/40
11/11 [==============================] - 0s 13ms/step - loss: 0.5262 - accuracy: 0.9341 - val_loss: 1.2628 - val_accuracy: 0.6071
Epoch 15/40
11/11 [==============================] - 0s 13ms/step - loss: 0.4596 - accuracy: 0.9551 - val_loss: 1.2462 - val_accuracy: 0.6071
Epoch 16/40
11/11 [==============================] - 0s 12ms/step - loss: 0.4317 - accuracy: 0.9581 - val_loss: 1.2534 - val_accuracy: 0.6190
Epoch 17/40
11/11 [==============================] - 0s 14ms/step - loss: 0.3821 - accuracy: 0.9611 - val_loss: 1.2236 - val_accuracy: 0.6548
Epoch 18/40
11/11 [==============================] - 0s 12ms/step - loss: 0.3564 - accuracy: 0.9641 - val_loss: 1.2355 - val_accuracy: 0.6667
Epoch 19/40
11/11 [==============================] - 0s 13ms/step - loss: 0.3240 - accuracy: 0.9760 - val_loss: 1.2826 - val_accuracy: 0.6786
Epoch 20/40
11/11 [==============================] - 0s 15ms/step - loss: 0.3011 - accuracy: 0.9731 - val_loss: 1.2881 - val_accuracy: 0.6786
Epoch 21/40
11/11 [==============================] - 0s 14ms/step - loss: 0.2552 - accuracy: 0.9850 - val_loss: 1.3009 - val_accuracy: 0.6786
Epoch 22/40
11/11 [==============================] - 0s 14ms/step - loss: 0.2464 - accuracy: 0.9850 - val_loss: 1.3290 - val_accuracy: 0.6429
Epoch 23/40
11/11 [==============================] - 0s 13ms/step - loss: 0.2189 - accuracy: 0.9850 - val_loss: 1.3525 - val_accuracy: 0.6667
Epoch 24/40
11/11 [==============================] - 0s 14ms/step - loss: 0.2132 - accuracy: 0.9880 - val_loss: 1.3657 - val_accuracy: 0.6786
Epoch 25/40
11/11 [==============================] - 0s 12ms/step - loss: 0.2148 - accuracy: 0.9731 - val_loss: 1.3534 - val_accuracy: 0.6786
Epoch 26/40
11/11 [==============================] - 0s 13ms/step - loss: 0.1952 - accuracy: 0.9760 - val_loss: 1.3916 - val_accuracy: 0.6548
Epoch 27/40
11/11 [==============================] - 0s 14ms/step - loss: 0.1854 - accuracy: 0.9910 - val_loss: 1.3906 - val_accuracy: 0.6548
Epoch 28/40
11/11 [==============================] - 0s 12ms/step - loss: 0.1498 - accuracy: 0.9910 - val_loss: 1.4639 - val_accuracy: 0.6548
Epoch 29/40
11/11 [==============================] - 0s 15ms/step - loss: 0.1645 - accuracy: 0.9850 - val_loss: 1.3870 - val_accuracy: 0.7143
Epoch 30/40
11/11 [==============================] - 0s 12ms/step - loss: 0.1386 - accuracy: 0.9910 - val_loss: 1.3973 - val_accuracy: 0.7262
Epoch 31/40
11/11 [==============================] - 0s 13ms/step - loss: 0.1270 - accuracy: 0.9880 - val_loss: 1.4204 - val_accuracy: 0.7262
Epoch 32/40
11/11 [==============================] - 0s 12ms/step - loss: 0.1056 - accuracy: 0.9940 - val_loss: 1.4324 - val_accuracy: 0.7262
Epoch 33/40
11/11 [==============================] - 0s 14ms/step - loss: 0.1100 - accuracy: 0.9880 - val_loss: 1.4431 - val_accuracy: 0.7262
Epoch 34/40
11/11 [==============================] - 0s 12ms/step - loss: 0.0913 - accuracy: 0.9970 - val_loss: 1.4351 - val_accuracy: 0.7262
Epoch 35/40
11/11 [==============================] - 0s 14ms/step - loss: 0.1201 - accuracy: 0.9880 - val_loss: 1.4847 - val_accuracy: 0.7024
Epoch 36/40
11/11 [==============================] - 0s 15ms/step - loss: 0.0788 - accuracy: 0.9910 - val_loss: 1.4880 - val_accuracy: 0.7262
Epoch 37/40
11/11 [==============================] - 0s 12ms/step - loss: 0.0776 - accuracy: 0.9970 - val_loss: 1.4626 - val_accuracy: 0.7262
Epoch 38/40
11/11 [==============================] - 0s 12ms/step - loss: 0.0877 - accuracy: 0.9880 - val_loss: 1.4538 - val_accuracy: 0.7024
Epoch 39/40
11/11 [==============================] - 0s 14ms/step - loss: 0.0825 - accuracy: 0.9910 - val_loss: 1.4551 - val_accuracy: 0.6905
Epoch 40/40
11/11 [==============================] - 0s 13ms/step - loss: 0.0995 - accuracy: 0.9880 - val_loss: 1.5313 - val_accuracy: 0.6548
In [ ]:
result=function_model("ANN_5_Layers_BN",model, history, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.9880239367485046
Test Accuracy score:  0.6547619104385376
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.72      0.89      0.80        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.65        84
   macro avg       0.14      0.18      0.16        84
weighted avg       0.53      0.65      0.59        84

No description has been provided for this image

ANN-5 Layers add Dropout¶

In [ ]:
#preparing model1

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model1 = tf.keras.Sequential()

model1.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model1
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model1.add(tf.keras.layers.Flatten())

model1.add(tf.keras.layers.Dense(256, activation='relu'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(128, activation='relu'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(64, activation='relu'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(32, activation='relu'))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(16, activation='relu'))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model1 summary
model1.summary()


#Compile the model1
model1.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history1=model1.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=40,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/40
11/11 [==============================] - 5s 51ms/step - loss: 2.0064 - accuracy: 0.1557 - val_loss: 1.7566 - val_accuracy: 0.1667
Epoch 2/40
11/11 [==============================] - 0s 20ms/step - loss: 1.9604 - accuracy: 0.1826 - val_loss: 1.6857 - val_accuracy: 0.1190
Epoch 3/40
11/11 [==============================] - 0s 19ms/step - loss: 1.9040 - accuracy: 0.2126 - val_loss: 1.5911 - val_accuracy: 0.3333
Epoch 4/40
11/11 [==============================] - 0s 21ms/step - loss: 1.8775 - accuracy: 0.2096 - val_loss: 1.5393 - val_accuracy: 0.4524
Epoch 5/40
11/11 [==============================] - 0s 13ms/step - loss: 1.7563 - accuracy: 0.2335 - val_loss: 1.5032 - val_accuracy: 0.5119
Epoch 6/40
11/11 [==============================] - 0s 14ms/step - loss: 1.7458 - accuracy: 0.2605 - val_loss: 1.4738 - val_accuracy: 0.5833
Epoch 7/40
11/11 [==============================] - 0s 14ms/step - loss: 1.6886 - accuracy: 0.2814 - val_loss: 1.4215 - val_accuracy: 0.6786
Epoch 8/40
11/11 [==============================] - 0s 13ms/step - loss: 1.6681 - accuracy: 0.2725 - val_loss: 1.3790 - val_accuracy: 0.6905
Epoch 9/40
11/11 [==============================] - 0s 13ms/step - loss: 1.5674 - accuracy: 0.3323 - val_loss: 1.3646 - val_accuracy: 0.6905
Epoch 10/40
11/11 [==============================] - 0s 14ms/step - loss: 1.5432 - accuracy: 0.3593 - val_loss: 1.3348 - val_accuracy: 0.7143
Epoch 11/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4735 - accuracy: 0.3563 - val_loss: 1.2893 - val_accuracy: 0.7262
Epoch 12/40
11/11 [==============================] - 0s 13ms/step - loss: 1.4409 - accuracy: 0.4551 - val_loss: 1.2708 - val_accuracy: 0.7262
Epoch 13/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4053 - accuracy: 0.4671 - val_loss: 1.2527 - val_accuracy: 0.7262
Epoch 14/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4503 - accuracy: 0.4731 - val_loss: 1.2255 - val_accuracy: 0.7381
Epoch 15/40
11/11 [==============================] - 0s 13ms/step - loss: 1.3875 - accuracy: 0.4940 - val_loss: 1.2012 - val_accuracy: 0.7381
Epoch 16/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3645 - accuracy: 0.5030 - val_loss: 1.1775 - val_accuracy: 0.7381
Epoch 17/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3530 - accuracy: 0.5150 - val_loss: 1.1468 - val_accuracy: 0.7381
Epoch 18/40
11/11 [==============================] - 0s 15ms/step - loss: 1.2507 - accuracy: 0.5928 - val_loss: 1.1125 - val_accuracy: 0.7381
Epoch 19/40
11/11 [==============================] - 0s 13ms/step - loss: 1.2153 - accuracy: 0.5778 - val_loss: 1.0910 - val_accuracy: 0.7381
Epoch 20/40
11/11 [==============================] - 0s 13ms/step - loss: 1.2269 - accuracy: 0.6287 - val_loss: 1.0707 - val_accuracy: 0.7381
Epoch 21/40
11/11 [==============================] - 0s 15ms/step - loss: 1.1626 - accuracy: 0.6617 - val_loss: 1.0558 - val_accuracy: 0.7381
Epoch 22/40
11/11 [==============================] - 0s 20ms/step - loss: 1.1984 - accuracy: 0.6138 - val_loss: 1.0365 - val_accuracy: 0.7381
Epoch 23/40
11/11 [==============================] - 0s 20ms/step - loss: 1.1595 - accuracy: 0.6497 - val_loss: 1.0169 - val_accuracy: 0.7381
Epoch 24/40
11/11 [==============================] - 0s 17ms/step - loss: 1.0714 - accuracy: 0.6737 - val_loss: 1.0040 - val_accuracy: 0.7381
Epoch 25/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1233 - accuracy: 0.6497 - val_loss: 0.9960 - val_accuracy: 0.7381
Epoch 26/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1124 - accuracy: 0.6557 - val_loss: 0.9879 - val_accuracy: 0.7381
Epoch 27/40
11/11 [==============================] - 0s 19ms/step - loss: 1.1027 - accuracy: 0.6707 - val_loss: 0.9779 - val_accuracy: 0.7381
Epoch 28/40
11/11 [==============================] - 0s 16ms/step - loss: 1.0945 - accuracy: 0.6647 - val_loss: 0.9689 - val_accuracy: 0.7381
Epoch 29/40
11/11 [==============================] - 0s 17ms/step - loss: 1.0870 - accuracy: 0.6946 - val_loss: 0.9626 - val_accuracy: 0.7381
Epoch 30/40
11/11 [==============================] - 0s 16ms/step - loss: 1.0974 - accuracy: 0.6916 - val_loss: 0.9604 - val_accuracy: 0.7381
Epoch 31/40
11/11 [==============================] - 0s 15ms/step - loss: 0.9934 - accuracy: 0.7006 - val_loss: 0.9571 - val_accuracy: 0.7381
Epoch 32/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0194 - accuracy: 0.6916 - val_loss: 0.9526 - val_accuracy: 0.7381
Epoch 33/40
11/11 [==============================] - 0s 14ms/step - loss: 0.9702 - accuracy: 0.7335 - val_loss: 0.9480 - val_accuracy: 0.7381
Epoch 34/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0392 - accuracy: 0.6976 - val_loss: 0.9491 - val_accuracy: 0.7381
Epoch 35/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0227 - accuracy: 0.7126 - val_loss: 0.9485 - val_accuracy: 0.7381
Epoch 36/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9998 - accuracy: 0.7096 - val_loss: 0.9473 - val_accuracy: 0.7381
Epoch 37/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9974 - accuracy: 0.7066 - val_loss: 0.9477 - val_accuracy: 0.7381
Epoch 38/40
11/11 [==============================] - 0s 12ms/step - loss: 0.9734 - accuracy: 0.7096 - val_loss: 0.9488 - val_accuracy: 0.7381
Epoch 39/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9695 - accuracy: 0.7066 - val_loss: 0.9457 - val_accuracy: 0.7381
Epoch 40/40
11/11 [==============================] - 0s 15ms/step - loss: 0.9827 - accuracy: 0.7096 - val_loss: 0.9458 - val_accuracy: 0.7381
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout",model1, history1, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.7095808386802673
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN-5 Layers add kernel initialization¶

In [ ]:
#preparing model1

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model1 = tf.keras.Sequential()

model1.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model1
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model1.add(tf.keras.layers.Flatten())

model1.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model1 summary
model1.summary()


#Compile the model1
model1.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history1=model1.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=40,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/40
11/11 [==============================] - 4s 52ms/step - loss: 1.9847 - accuracy: 0.1976 - val_loss: 3.6270 - val_accuracy: 0.0595
Epoch 2/40
11/11 [==============================] - 0s 18ms/step - loss: 1.9148 - accuracy: 0.2725 - val_loss: 2.7551 - val_accuracy: 0.0476
Epoch 3/40
11/11 [==============================] - 0s 17ms/step - loss: 1.8589 - accuracy: 0.2874 - val_loss: 2.1036 - val_accuracy: 0.0714
Epoch 4/40
11/11 [==============================] - 0s 18ms/step - loss: 1.8264 - accuracy: 0.2904 - val_loss: 1.7575 - val_accuracy: 0.2262
Epoch 5/40
11/11 [==============================] - 0s 19ms/step - loss: 1.6837 - accuracy: 0.3293 - val_loss: 1.5046 - val_accuracy: 0.4762
Epoch 6/40
11/11 [==============================] - 0s 19ms/step - loss: 1.7051 - accuracy: 0.2934 - val_loss: 1.3979 - val_accuracy: 0.6667
Epoch 7/40
11/11 [==============================] - 0s 19ms/step - loss: 1.6128 - accuracy: 0.3563 - val_loss: 1.3396 - val_accuracy: 0.6786
Epoch 8/40
11/11 [==============================] - 0s 29ms/step - loss: 1.6231 - accuracy: 0.3144 - val_loss: 1.2821 - val_accuracy: 0.6905
Epoch 9/40
11/11 [==============================] - 0s 20ms/step - loss: 1.4974 - accuracy: 0.4431 - val_loss: 1.2312 - val_accuracy: 0.7143
Epoch 10/40
11/11 [==============================] - 0s 20ms/step - loss: 1.5436 - accuracy: 0.4401 - val_loss: 1.1904 - val_accuracy: 0.7262
Epoch 11/40
11/11 [==============================] - 0s 16ms/step - loss: 1.4907 - accuracy: 0.4521 - val_loss: 1.1635 - val_accuracy: 0.7262
Epoch 12/40
11/11 [==============================] - 0s 18ms/step - loss: 1.4587 - accuracy: 0.4790 - val_loss: 1.1369 - val_accuracy: 0.7381
Epoch 13/40
11/11 [==============================] - 0s 19ms/step - loss: 1.4248 - accuracy: 0.5180 - val_loss: 1.1225 - val_accuracy: 0.7381
Epoch 14/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3980 - accuracy: 0.5030 - val_loss: 1.1092 - val_accuracy: 0.7381
Epoch 15/40
11/11 [==============================] - 0s 12ms/step - loss: 1.3554 - accuracy: 0.5749 - val_loss: 1.0900 - val_accuracy: 0.7381
Epoch 16/40
11/11 [==============================] - 0s 13ms/step - loss: 1.3373 - accuracy: 0.5449 - val_loss: 1.0730 - val_accuracy: 0.7381
Epoch 17/40
11/11 [==============================] - 0s 14ms/step - loss: 1.2788 - accuracy: 0.5749 - val_loss: 1.0580 - val_accuracy: 0.7381
Epoch 18/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1977 - accuracy: 0.6108 - val_loss: 1.0341 - val_accuracy: 0.7381
Epoch 19/40
11/11 [==============================] - 0s 14ms/step - loss: 1.2685 - accuracy: 0.5689 - val_loss: 1.0179 - val_accuracy: 0.7381
Epoch 20/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1981 - accuracy: 0.6257 - val_loss: 1.0076 - val_accuracy: 0.7381
Epoch 21/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1718 - accuracy: 0.6198 - val_loss: 0.9981 - val_accuracy: 0.7381
Epoch 22/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1443 - accuracy: 0.6287 - val_loss: 0.9867 - val_accuracy: 0.7381
Epoch 23/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1818 - accuracy: 0.6377 - val_loss: 0.9782 - val_accuracy: 0.7381
Epoch 24/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1111 - accuracy: 0.6707 - val_loss: 0.9679 - val_accuracy: 0.7381
Epoch 25/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0997 - accuracy: 0.6497 - val_loss: 0.9562 - val_accuracy: 0.7381
Epoch 26/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1020 - accuracy: 0.6677 - val_loss: 0.9464 - val_accuracy: 0.7381
Epoch 27/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1471 - accuracy: 0.6497 - val_loss: 0.9449 - val_accuracy: 0.7381
Epoch 28/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0418 - accuracy: 0.6976 - val_loss: 0.9433 - val_accuracy: 0.7381
Epoch 29/40
11/11 [==============================] - 0s 15ms/step - loss: 1.0706 - accuracy: 0.6856 - val_loss: 0.9396 - val_accuracy: 0.7381
Epoch 30/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0384 - accuracy: 0.7006 - val_loss: 0.9358 - val_accuracy: 0.7381
Epoch 31/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0586 - accuracy: 0.6856 - val_loss: 0.9326 - val_accuracy: 0.7381
Epoch 32/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0199 - accuracy: 0.6946 - val_loss: 0.9286 - val_accuracy: 0.7381
Epoch 33/40
11/11 [==============================] - 0s 15ms/step - loss: 0.9956 - accuracy: 0.7156 - val_loss: 0.9282 - val_accuracy: 0.7381
Epoch 34/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9947 - accuracy: 0.7216 - val_loss: 0.9281 - val_accuracy: 0.7381
Epoch 35/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9761 - accuracy: 0.7156 - val_loss: 0.9272 - val_accuracy: 0.7381
Epoch 36/40
11/11 [==============================] - 0s 14ms/step - loss: 0.9731 - accuracy: 0.7066 - val_loss: 0.9260 - val_accuracy: 0.7381
Epoch 37/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0114 - accuracy: 0.7036 - val_loss: 0.9265 - val_accuracy: 0.7381
Epoch 38/40
11/11 [==============================] - 0s 12ms/step - loss: 0.9572 - accuracy: 0.7246 - val_loss: 0.9266 - val_accuracy: 0.7381
Epoch 39/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9969 - accuracy: 0.7006 - val_loss: 0.9263 - val_accuracy: 0.7381
Epoch 40/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9836 - accuracy: 0.7066 - val_loss: 0.9284 - val_accuracy: 0.7381
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kernel",model1, history1, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kernel
3/3 [==============================] - 0s 3ms/step
Train Accuracy score:  0.7065868377685547
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN-5 Layers try Leaky Relu

In [ ]:
#preparing model1

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model1 = tf.keras.Sequential()

model1.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model1
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model1.add(tf.keras.layers.Flatten())

model1.add(tf.keras.layers.Dense(256, activation=LeakyReLU(alpha=.01), kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(128, activation=LeakyReLU(alpha=.01), kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(64, activation=LeakyReLU(alpha=.01), kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(32, activation=LeakyReLU(alpha=.01),kernel_initializer='he_uniform' ))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(16, activation=LeakyReLU(alpha=.01), kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model1 summary
model1.summary()


#Compile the model1
model1.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history1=model1.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=40,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/40
11/11 [==============================] - 5s 39ms/step - loss: 2.2038 - accuracy: 0.1916 - val_loss: 3.5097 - val_accuracy: 0.1071
Epoch 2/40
11/11 [==============================] - 0s 15ms/step - loss: 2.2082 - accuracy: 0.1766 - val_loss: 2.1791 - val_accuracy: 0.1310
Epoch 3/40
11/11 [==============================] - 0s 13ms/step - loss: 2.0619 - accuracy: 0.1617 - val_loss: 1.6556 - val_accuracy: 0.2143
Epoch 4/40
11/11 [==============================] - 0s 15ms/step - loss: 1.9313 - accuracy: 0.2515 - val_loss: 1.4920 - val_accuracy: 0.3690
Epoch 5/40
11/11 [==============================] - 0s 15ms/step - loss: 1.9565 - accuracy: 0.2036 - val_loss: 1.5112 - val_accuracy: 0.5000
Epoch 6/40
11/11 [==============================] - 0s 14ms/step - loss: 1.9477 - accuracy: 0.1527 - val_loss: 1.5147 - val_accuracy: 0.4881
Epoch 7/40
11/11 [==============================] - 0s 13ms/step - loss: 1.7844 - accuracy: 0.2545 - val_loss: 1.4747 - val_accuracy: 0.6548
Epoch 8/40
11/11 [==============================] - 0s 13ms/step - loss: 1.7879 - accuracy: 0.2814 - val_loss: 1.4492 - val_accuracy: 0.6548
Epoch 9/40
11/11 [==============================] - 0s 13ms/step - loss: 1.7297 - accuracy: 0.3144 - val_loss: 1.4100 - val_accuracy: 0.6905
Epoch 10/40
11/11 [==============================] - 0s 14ms/step - loss: 1.7039 - accuracy: 0.2844 - val_loss: 1.3942 - val_accuracy: 0.7262
Epoch 11/40
11/11 [==============================] - 0s 15ms/step - loss: 1.5251 - accuracy: 0.3563 - val_loss: 1.3819 - val_accuracy: 0.7381
Epoch 12/40
11/11 [==============================] - 0s 13ms/step - loss: 1.6009 - accuracy: 0.3623 - val_loss: 1.3641 - val_accuracy: 0.7262
Epoch 13/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4772 - accuracy: 0.4251 - val_loss: 1.3395 - val_accuracy: 0.7262
Epoch 14/40
11/11 [==============================] - 0s 13ms/step - loss: 1.5311 - accuracy: 0.3862 - val_loss: 1.2993 - val_accuracy: 0.7381
Epoch 15/40
11/11 [==============================] - 0s 14ms/step - loss: 1.4333 - accuracy: 0.4401 - val_loss: 1.2675 - val_accuracy: 0.7381
Epoch 16/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3539 - accuracy: 0.5120 - val_loss: 1.2146 - val_accuracy: 0.7381
Epoch 17/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3505 - accuracy: 0.4880 - val_loss: 1.1868 - val_accuracy: 0.7381
Epoch 18/40
11/11 [==============================] - 0s 14ms/step - loss: 1.3363 - accuracy: 0.5269 - val_loss: 1.1627 - val_accuracy: 0.7381
Epoch 19/40
11/11 [==============================] - 0s 13ms/step - loss: 1.3101 - accuracy: 0.5329 - val_loss: 1.1384 - val_accuracy: 0.7381
Epoch 20/40
11/11 [==============================] - 0s 13ms/step - loss: 1.2493 - accuracy: 0.5868 - val_loss: 1.1195 - val_accuracy: 0.7381
Epoch 21/40
11/11 [==============================] - 0s 14ms/step - loss: 1.2497 - accuracy: 0.5808 - val_loss: 1.0897 - val_accuracy: 0.7381
Epoch 22/40
11/11 [==============================] - 0s 14ms/step - loss: 1.2433 - accuracy: 0.5868 - val_loss: 1.0736 - val_accuracy: 0.7381
Epoch 23/40
11/11 [==============================] - 0s 13ms/step - loss: 1.2532 - accuracy: 0.6018 - val_loss: 1.0657 - val_accuracy: 0.7381
Epoch 24/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1941 - accuracy: 0.5988 - val_loss: 1.0558 - val_accuracy: 0.7381
Epoch 25/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1737 - accuracy: 0.6287 - val_loss: 1.0393 - val_accuracy: 0.7381
Epoch 26/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1989 - accuracy: 0.6407 - val_loss: 1.0095 - val_accuracy: 0.7381
Epoch 27/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1133 - accuracy: 0.6527 - val_loss: 0.9977 - val_accuracy: 0.7381
Epoch 28/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1164 - accuracy: 0.6707 - val_loss: 0.9958 - val_accuracy: 0.7381
Epoch 29/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1072 - accuracy: 0.6737 - val_loss: 0.9878 - val_accuracy: 0.7381
Epoch 30/40
11/11 [==============================] - 0s 14ms/step - loss: 1.1006 - accuracy: 0.6647 - val_loss: 0.9780 - val_accuracy: 0.7381
Epoch 31/40
11/11 [==============================] - 0s 15ms/step - loss: 1.0858 - accuracy: 0.6826 - val_loss: 0.9665 - val_accuracy: 0.7381
Epoch 32/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0751 - accuracy: 0.7006 - val_loss: 0.9574 - val_accuracy: 0.7381
Epoch 33/40
11/11 [==============================] - 0s 13ms/step - loss: 0.9948 - accuracy: 0.7156 - val_loss: 0.9465 - val_accuracy: 0.7381
Epoch 34/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0671 - accuracy: 0.7186 - val_loss: 0.9426 - val_accuracy: 0.7381
Epoch 35/40
11/11 [==============================] - 0s 14ms/step - loss: 0.9778 - accuracy: 0.7156 - val_loss: 0.9368 - val_accuracy: 0.7381
Epoch 36/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0674 - accuracy: 0.6826 - val_loss: 0.9316 - val_accuracy: 0.7381
Epoch 37/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0180 - accuracy: 0.7096 - val_loss: 0.9276 - val_accuracy: 0.7381
Epoch 38/40
11/11 [==============================] - 0s 15ms/step - loss: 1.0099 - accuracy: 0.7036 - val_loss: 0.9286 - val_accuracy: 0.7381
Epoch 39/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0128 - accuracy: 0.6946 - val_loss: 0.9284 - val_accuracy: 0.7381
Epoch 40/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0053 - accuracy: 0.7275 - val_loss: 0.9278 - val_accuracy: 0.7381
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kernel_leakyrelu",model1, history1, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kernel_leakyrelu
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.727544903755188
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN-5 layers with SGD¶

In [ ]:
#preparing model1

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model1 = tf.keras.Sequential()

model1.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model1
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model1.add(tf.keras.layers.Flatten())

model1.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.5))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model1.add(tf.keras.layers.Dropout(0.3))
model1.add(tf.keras.layers.BatchNormalization())

model1.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model1 summary
model1.summary()


#Compile the model1
model1.compile(optimizer=tf.keras.optimizers.SGD(learning_rate=.001, momentum=.9),loss='categorical_crossentropy',metrics=['accuracy'])

history1=model1.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=40,
                   batch_size=32,
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/40
11/11 [==============================] - 4s 53ms/step - loss: 1.9566 - accuracy: 0.2216 - val_loss: 1.7530 - val_accuracy: 0.0714
Epoch 2/40
11/11 [==============================] - 0s 17ms/step - loss: 1.9391 - accuracy: 0.2246 - val_loss: 1.8784 - val_accuracy: 0.0952
Epoch 3/40
11/11 [==============================] - 0s 18ms/step - loss: 1.8781 - accuracy: 0.2754 - val_loss: 1.6892 - val_accuracy: 0.2143
Epoch 4/40
11/11 [==============================] - 0s 19ms/step - loss: 1.7419 - accuracy: 0.3144 - val_loss: 1.5650 - val_accuracy: 0.3333
Epoch 5/40
11/11 [==============================] - 0s 17ms/step - loss: 1.6648 - accuracy: 0.3413 - val_loss: 1.4288 - val_accuracy: 0.4643
Epoch 6/40
11/11 [==============================] - 0s 18ms/step - loss: 1.5464 - accuracy: 0.4012 - val_loss: 1.3255 - val_accuracy: 0.6310
Epoch 7/40
11/11 [==============================] - 0s 17ms/step - loss: 1.5320 - accuracy: 0.4132 - val_loss: 1.2209 - val_accuracy: 0.7500
Epoch 8/40
11/11 [==============================] - 0s 15ms/step - loss: 1.3927 - accuracy: 0.4850 - val_loss: 1.1617 - val_accuracy: 0.7381
Epoch 9/40
11/11 [==============================] - 0s 17ms/step - loss: 1.3916 - accuracy: 0.4760 - val_loss: 1.1133 - val_accuracy: 0.7381
Epoch 10/40
11/11 [==============================] - 0s 19ms/step - loss: 1.3483 - accuracy: 0.4731 - val_loss: 1.0787 - val_accuracy: 0.7381
Epoch 11/40
11/11 [==============================] - 0s 19ms/step - loss: 1.4020 - accuracy: 0.4850 - val_loss: 1.0396 - val_accuracy: 0.7381
Epoch 12/40
11/11 [==============================] - 0s 19ms/step - loss: 1.2946 - accuracy: 0.5269 - val_loss: 1.0093 - val_accuracy: 0.7381
Epoch 13/40
11/11 [==============================] - 0s 17ms/step - loss: 1.2219 - accuracy: 0.5868 - val_loss: 1.0042 - val_accuracy: 0.7381
Epoch 14/40
11/11 [==============================] - 0s 13ms/step - loss: 1.2154 - accuracy: 0.6138 - val_loss: 0.9807 - val_accuracy: 0.7381
Epoch 15/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1998 - accuracy: 0.5719 - val_loss: 0.9691 - val_accuracy: 0.7381
Epoch 16/40
11/11 [==============================] - 0s 12ms/step - loss: 1.1255 - accuracy: 0.6287 - val_loss: 0.9641 - val_accuracy: 0.7381
Epoch 17/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1626 - accuracy: 0.6287 - val_loss: 0.9614 - val_accuracy: 0.7381
Epoch 18/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1130 - accuracy: 0.6437 - val_loss: 0.9562 - val_accuracy: 0.7381
Epoch 19/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0687 - accuracy: 0.6886 - val_loss: 0.9528 - val_accuracy: 0.7381
Epoch 20/40
11/11 [==============================] - 0s 12ms/step - loss: 1.1167 - accuracy: 0.6587 - val_loss: 0.9428 - val_accuracy: 0.7381
Epoch 21/40
11/11 [==============================] - 0s 13ms/step - loss: 1.1143 - accuracy: 0.6677 - val_loss: 0.9426 - val_accuracy: 0.7381
Epoch 22/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0555 - accuracy: 0.6677 - val_loss: 0.9459 - val_accuracy: 0.7381
Epoch 23/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0992 - accuracy: 0.6647 - val_loss: 0.9404 - val_accuracy: 0.7381
Epoch 24/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0305 - accuracy: 0.6886 - val_loss: 0.9354 - val_accuracy: 0.7381
Epoch 25/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0824 - accuracy: 0.6886 - val_loss: 0.9355 - val_accuracy: 0.7381
Epoch 26/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0693 - accuracy: 0.6707 - val_loss: 0.9390 - val_accuracy: 0.7381
Epoch 27/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0537 - accuracy: 0.6916 - val_loss: 0.9407 - val_accuracy: 0.7381
Epoch 28/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0537 - accuracy: 0.7006 - val_loss: 0.9463 - val_accuracy: 0.7381
Epoch 29/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0458 - accuracy: 0.7066 - val_loss: 0.9434 - val_accuracy: 0.7381
Epoch 30/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0213 - accuracy: 0.6916 - val_loss: 0.9407 - val_accuracy: 0.7381
Epoch 31/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0068 - accuracy: 0.7096 - val_loss: 0.9352 - val_accuracy: 0.7381
Epoch 32/40
11/11 [==============================] - 0s 14ms/step - loss: 1.0100 - accuracy: 0.7216 - val_loss: 0.9328 - val_accuracy: 0.7381
Epoch 33/40
11/11 [==============================] - 0s 12ms/step - loss: 1.0519 - accuracy: 0.7036 - val_loss: 0.9311 - val_accuracy: 0.7381
Epoch 34/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0382 - accuracy: 0.7156 - val_loss: 0.9272 - val_accuracy: 0.7381
Epoch 35/40
11/11 [==============================] - 0s 13ms/step - loss: 1.0488 - accuracy: 0.7066 - val_loss: 0.9254 - val_accuracy: 0.7381
Epoch 36/40
11/11 [==============================] - 0s 19ms/step - loss: 1.0343 - accuracy: 0.7096 - val_loss: 0.9265 - val_accuracy: 0.7381
Epoch 37/40
11/11 [==============================] - 0s 20ms/step - loss: 0.9906 - accuracy: 0.7246 - val_loss: 0.9304 - val_accuracy: 0.7381
Epoch 38/40
11/11 [==============================] - 0s 20ms/step - loss: 1.0107 - accuracy: 0.7216 - val_loss: 0.9325 - val_accuracy: 0.7381
Epoch 39/40
11/11 [==============================] - 0s 16ms/step - loss: 0.9742 - accuracy: 0.7305 - val_loss: 0.9310 - val_accuracy: 0.7381
Epoch 40/40
11/11 [==============================] - 0s 16ms/step - loss: 1.0171 - accuracy: 0.7246 - val_loss: 0.9290 - val_accuracy: 0.7381
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kernel_SGD",model1, history1, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kernel_SGD
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.7245509028434753
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN with reduced LR¶

In [ ]:
#preparing model2

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model2 = tf.keras.Sequential()

model2.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model2
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model2.add(tf.keras.layers.Flatten())

model2.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model2 summary
model2.summary()


#Compile the model2
model2.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history2=model2.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=100,
                   batch_size=8,
                   callbacks=[reduce_lr],
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/100
42/42 [==============================] - 5s 18ms/step - loss: 2.1311 - accuracy: 0.1527 - val_loss: 2.6434 - val_accuracy: 0.0357 - lr: 0.0010
Epoch 2/100
42/42 [==============================] - 0s 12ms/step - loss: 1.9177 - accuracy: 0.2455 - val_loss: 1.4656 - val_accuracy: 0.4881 - lr: 0.0010
Epoch 3/100
42/42 [==============================] - 0s 11ms/step - loss: 1.7379 - accuracy: 0.3114 - val_loss: 1.3300 - val_accuracy: 0.6190 - lr: 0.0010
Epoch 4/100
42/42 [==============================] - 0s 11ms/step - loss: 1.6367 - accuracy: 0.3473 - val_loss: 1.2116 - val_accuracy: 0.7262 - lr: 0.0010
Epoch 5/100
42/42 [==============================] - 1s 12ms/step - loss: 1.4368 - accuracy: 0.4371 - val_loss: 1.1295 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 6/100
42/42 [==============================] - 0s 11ms/step - loss: 1.4068 - accuracy: 0.4611 - val_loss: 1.0620 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 7/100
42/42 [==============================] - 0s 11ms/step - loss: 1.2936 - accuracy: 0.5629 - val_loss: 1.0308 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 8/100
42/42 [==============================] - 0s 11ms/step - loss: 1.2673 - accuracy: 0.6048 - val_loss: 0.9897 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 9/100
42/42 [==============================] - 0s 11ms/step - loss: 1.1842 - accuracy: 0.6287 - val_loss: 0.9820 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 10/100
42/42 [==============================] - 0s 11ms/step - loss: 1.1262 - accuracy: 0.6647 - val_loss: 0.9561 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 11/100
42/42 [==============================] - 1s 13ms/step - loss: 1.0641 - accuracy: 0.6946 - val_loss: 0.9462 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 12/100
42/42 [==============================] - 1s 15ms/step - loss: 1.0756 - accuracy: 0.7036 - val_loss: 0.9434 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 13/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0146 - accuracy: 0.7156 - val_loss: 0.9404 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 14/100
42/42 [==============================] - 0s 12ms/step - loss: 1.0270 - accuracy: 0.7216 - val_loss: 0.9267 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 15/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9874 - accuracy: 0.7126 - val_loss: 0.9275 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 16/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9993 - accuracy: 0.7395 - val_loss: 0.9275 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 17/100
42/42 [==============================] - 1s 14ms/step - loss: 1.0162 - accuracy: 0.7156 - val_loss: 0.9244 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 18/100
42/42 [==============================] - 1s 15ms/step - loss: 1.0048 - accuracy: 0.7246 - val_loss: 0.9279 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 19/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9700 - accuracy: 0.7305 - val_loss: 0.9403 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 20/100
42/42 [==============================] - 1s 16ms/step - loss: 0.9848 - accuracy: 0.7275 - val_loss: 0.9380 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 21/100
42/42 [==============================] - 1s 13ms/step - loss: 1.0020 - accuracy: 0.7305 - val_loss: 0.9276 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 22/100
42/42 [==============================] - ETA: 0s - loss: 0.9554 - accuracy: 0.7335
Epoch 22: ReduceLROnPlateau reducing learning rate to 0.00010000000474974513.
42/42 [==============================] - 0s 11ms/step - loss: 0.9554 - accuracy: 0.7335 - val_loss: 0.9265 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 23/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9713 - accuracy: 0.7335 - val_loss: 0.9282 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 24/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9857 - accuracy: 0.7305 - val_loss: 0.9272 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 25/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9933 - accuracy: 0.7305 - val_loss: 0.9263 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 26/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0367 - accuracy: 0.7275 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 27/100
41/42 [============================>.] - ETA: 0s - loss: 0.9773 - accuracy: 0.7287
Epoch 27: ReduceLROnPlateau reducing learning rate to 1.0000000474974514e-05.
42/42 [==============================] - 0s 11ms/step - loss: 0.9781 - accuracy: 0.7305 - val_loss: 0.9243 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 28/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9869 - accuracy: 0.7335 - val_loss: 0.9251 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 29/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9602 - accuracy: 0.7365 - val_loss: 0.9241 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 30/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9633 - accuracy: 0.7365 - val_loss: 0.9244 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 31/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9962 - accuracy: 0.7305 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 32/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9464 - accuracy: 0.7305 - val_loss: 0.9250 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 33/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9629 - accuracy: 0.7365 - val_loss: 0.9248 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 34/100
37/42 [=========================>....] - ETA: 0s - loss: 0.9534 - accuracy: 0.7466
Epoch 34: ReduceLROnPlateau reducing learning rate to 1.0000000656873453e-06.
42/42 [==============================] - 0s 12ms/step - loss: 0.9684 - accuracy: 0.7365 - val_loss: 0.9260 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 35/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9510 - accuracy: 0.7365 - val_loss: 0.9270 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 36/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9786 - accuracy: 0.7365 - val_loss: 0.9278 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 37/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9989 - accuracy: 0.7335 - val_loss: 0.9271 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 38/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9551 - accuracy: 0.7395 - val_loss: 0.9268 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 39/100
42/42 [==============================] - ETA: 0s - loss: 0.9796 - accuracy: 0.7395
Epoch 39: ReduceLROnPlateau reducing learning rate to 1.0000001111620805e-07.
42/42 [==============================] - 0s 11ms/step - loss: 0.9796 - accuracy: 0.7395 - val_loss: 0.9255 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 40/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9616 - accuracy: 0.7395 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 41/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9990 - accuracy: 0.7395 - val_loss: 0.9257 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 42/100
42/42 [==============================] - 1s 14ms/step - loss: 0.9710 - accuracy: 0.7395 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 43/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9982 - accuracy: 0.7305 - val_loss: 0.9272 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 44/100
42/42 [==============================] - ETA: 0s - loss: 0.9947 - accuracy: 0.7335
Epoch 44: ReduceLROnPlateau reducing learning rate to 1.000000082740371e-08.
42/42 [==============================] - 1s 14ms/step - loss: 0.9947 - accuracy: 0.7335 - val_loss: 0.9272 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 45/100
42/42 [==============================] - 1s 15ms/step - loss: 1.0269 - accuracy: 0.7305 - val_loss: 0.9276 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 46/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9917 - accuracy: 0.7395 - val_loss: 0.9264 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 47/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9579 - accuracy: 0.7425 - val_loss: 0.9263 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 48/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9379 - accuracy: 0.7395 - val_loss: 0.9269 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 49/100
41/42 [============================>.] - ETA: 0s - loss: 0.9693 - accuracy: 0.7287
Epoch 49: ReduceLROnPlateau reducing learning rate to 1e-08.
42/42 [==============================] - 0s 11ms/step - loss: 0.9656 - accuracy: 0.7305 - val_loss: 0.9258 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 50/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9815 - accuracy: 0.7395 - val_loss: 0.9270 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 51/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9916 - accuracy: 0.7365 - val_loss: 0.9269 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 52/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9628 - accuracy: 0.7365 - val_loss: 0.9264 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 53/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9827 - accuracy: 0.7335 - val_loss: 0.9271 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 54/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9505 - accuracy: 0.7365 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 55/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0007 - accuracy: 0.7335 - val_loss: 0.9256 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 56/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0107 - accuracy: 0.7365 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 57/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9904 - accuracy: 0.7365 - val_loss: 0.9268 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 58/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0007 - accuracy: 0.7335 - val_loss: 0.9264 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 59/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9869 - accuracy: 0.7365 - val_loss: 0.9266 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 60/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9344 - accuracy: 0.7335 - val_loss: 0.9265 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 61/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9652 - accuracy: 0.7395 - val_loss: 0.9260 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 62/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9744 - accuracy: 0.7365 - val_loss: 0.9265 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 63/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9388 - accuracy: 0.7395 - val_loss: 0.9267 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 64/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9730 - accuracy: 0.7395 - val_loss: 0.9261 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 65/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9923 - accuracy: 0.7305 - val_loss: 0.9248 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 66/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0328 - accuracy: 0.7305 - val_loss: 0.9258 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 67/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9557 - accuracy: 0.7335 - val_loss: 0.9261 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 68/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9873 - accuracy: 0.7365 - val_loss: 0.9252 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 69/100
42/42 [==============================] - 1s 16ms/step - loss: 0.9877 - accuracy: 0.7395 - val_loss: 0.9273 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 70/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9701 - accuracy: 0.7395 - val_loss: 0.9264 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 71/100
42/42 [==============================] - 1s 16ms/step - loss: 0.9703 - accuracy: 0.7365 - val_loss: 0.9267 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 72/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9714 - accuracy: 0.7365 - val_loss: 0.9270 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 73/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9346 - accuracy: 0.7395 - val_loss: 0.9256 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 74/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9938 - accuracy: 0.7305 - val_loss: 0.9249 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 75/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0035 - accuracy: 0.7395 - val_loss: 0.9266 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 76/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0468 - accuracy: 0.7365 - val_loss: 0.9250 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 77/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9478 - accuracy: 0.7365 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 78/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9615 - accuracy: 0.7365 - val_loss: 0.9251 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 79/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9500 - accuracy: 0.7335 - val_loss: 0.9248 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 80/100
42/42 [==============================] - 0s 11ms/step - loss: 1.0147 - accuracy: 0.7395 - val_loss: 0.9256 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 81/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0093 - accuracy: 0.7395 - val_loss: 0.9270 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 82/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9561 - accuracy: 0.7365 - val_loss: 0.9262 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 83/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9793 - accuracy: 0.7365 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 84/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9942 - accuracy: 0.7335 - val_loss: 0.9251 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 85/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9722 - accuracy: 0.7365 - val_loss: 0.9258 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 86/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9633 - accuracy: 0.7395 - val_loss: 0.9254 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 87/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9946 - accuracy: 0.7335 - val_loss: 0.9255 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 88/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9927 - accuracy: 0.7365 - val_loss: 0.9253 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 89/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9987 - accuracy: 0.7395 - val_loss: 0.9239 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 90/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9623 - accuracy: 0.7335 - val_loss: 0.9247 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 91/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9704 - accuracy: 0.7395 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 92/100
42/42 [==============================] - 0s 12ms/step - loss: 0.9407 - accuracy: 0.7365 - val_loss: 0.9269 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 93/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9634 - accuracy: 0.7395 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 94/100
42/42 [==============================] - 1s 16ms/step - loss: 1.0313 - accuracy: 0.7275 - val_loss: 0.9246 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 95/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9940 - accuracy: 0.7335 - val_loss: 0.9261 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 96/100
42/42 [==============================] - 1s 16ms/step - loss: 0.9754 - accuracy: 0.7395 - val_loss: 0.9258 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 97/100
42/42 [==============================] - 1s 14ms/step - loss: 0.9909 - accuracy: 0.7335 - val_loss: 0.9272 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 98/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0005 - accuracy: 0.7365 - val_loss: 0.9263 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 99/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9427 - accuracy: 0.7365 - val_loss: 0.9257 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 100/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0023 - accuracy: 0.7365 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 1.0000e-08
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kerne_reducedlr",model2, history2, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kerne_reducedlr
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.7365269660949707
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN with early stopping and reduced LR¶

In [ ]:
#preparing model2

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model2 = tf.keras.Sequential()

model2.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model2
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model2.add(tf.keras.layers.Flatten())

model2.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model2 summary
model2.summary()


#Compile the model2
model2.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the EarlyStopping callback
early_stopping = EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True, min_delta=1E-3)


# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history2=model2.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=100,
                   batch_size=8,
                   callbacks=[early_stopping, reduce_lr],
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/100
42/42 [==============================] - 5s 28ms/step - loss: 1.9490 - accuracy: 0.2006 - val_loss: 1.8328 - val_accuracy: 0.2143 - lr: 0.0010
Epoch 2/100
42/42 [==============================] - 1s 17ms/step - loss: 1.7123 - accuracy: 0.3234 - val_loss: 1.4057 - val_accuracy: 0.4881 - lr: 0.0010
Epoch 3/100
42/42 [==============================] - 1s 15ms/step - loss: 1.6737 - accuracy: 0.3473 - val_loss: 1.3756 - val_accuracy: 0.5833 - lr: 0.0010
Epoch 4/100
42/42 [==============================] - 1s 14ms/step - loss: 1.4985 - accuracy: 0.3982 - val_loss: 1.2662 - val_accuracy: 0.6905 - lr: 0.0010
Epoch 5/100
42/42 [==============================] - 1s 14ms/step - loss: 1.4800 - accuracy: 0.4281 - val_loss: 1.1977 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 6/100
42/42 [==============================] - 1s 14ms/step - loss: 1.3364 - accuracy: 0.5449 - val_loss: 1.1423 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 7/100
42/42 [==============================] - 1s 15ms/step - loss: 1.2841 - accuracy: 0.5479 - val_loss: 1.0526 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 8/100
42/42 [==============================] - 1s 18ms/step - loss: 1.2487 - accuracy: 0.5689 - val_loss: 1.0134 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 9/100
42/42 [==============================] - 1s 15ms/step - loss: 1.1108 - accuracy: 0.6617 - val_loss: 0.9773 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 10/100
42/42 [==============================] - 1s 13ms/step - loss: 1.1055 - accuracy: 0.6617 - val_loss: 0.9651 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 11/100
42/42 [==============================] - 1s 14ms/step - loss: 1.1107 - accuracy: 0.6886 - val_loss: 0.9486 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 12/100
42/42 [==============================] - 0s 12ms/step - loss: 1.0292 - accuracy: 0.7096 - val_loss: 0.9569 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 13/100
42/42 [==============================] - 1s 13ms/step - loss: 1.0232 - accuracy: 0.7186 - val_loss: 0.9259 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 14/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9888 - accuracy: 0.7156 - val_loss: 0.9191 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 15/100
42/42 [==============================] - 1s 12ms/step - loss: 1.0406 - accuracy: 0.7275 - val_loss: 0.9101 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 16/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9901 - accuracy: 0.7305 - val_loss: 0.9156 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 17/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9700 - accuracy: 0.7305 - val_loss: 0.9078 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 18/100
42/42 [==============================] - 1s 13ms/step - loss: 1.0174 - accuracy: 0.7275 - val_loss: 0.9002 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 19/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9663 - accuracy: 0.7305 - val_loss: 0.9027 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 20/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9835 - accuracy: 0.7395 - val_loss: 0.8989 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 21/100
42/42 [==============================] - 1s 14ms/step - loss: 0.9755 - accuracy: 0.7365 - val_loss: 0.9023 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 22/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9813 - accuracy: 0.7395 - val_loss: 0.9029 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 23/100
42/42 [==============================] - 1s 14ms/step - loss: 0.9271 - accuracy: 0.7395 - val_loss: 0.9018 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 24/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9447 - accuracy: 0.7365 - val_loss: 0.8988 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 25/100
42/42 [==============================] - ETA: 0s - loss: 0.9595 - accuracy: 0.7425
Epoch 25: ReduceLROnPlateau reducing learning rate to 0.00010000000474974513.
42/42 [==============================] - 1s 16ms/step - loss: 0.9595 - accuracy: 0.7425 - val_loss: 0.9037 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 26/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9513 - accuracy: 0.7395 - val_loss: 0.8998 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 27/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9375 - accuracy: 0.7365 - val_loss: 0.8995 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 28/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9491 - accuracy: 0.7395 - val_loss: 0.8999 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 29/100
42/42 [==============================] - 0s 11ms/step - loss: 0.9762 - accuracy: 0.7395 - val_loss: 0.8991 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 30/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9497 - accuracy: 0.7395 - val_loss: 0.8988 - val_accuracy: 0.7381 - lr: 1.0000e-04
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kerne_earlystop_reduceLR",model2, history2, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kerne_earlystop_reduceLR
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.7395209670066833
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

ANN with early stopping and reduced LR with trainable embeeding¶

In [ ]:
#preparing model2

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model2 = tf.keras.Sequential()

model2.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model2
                                    #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model2.add(tf.keras.layers.Flatten())

model2.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model2 summary
model2.summary()


#Compile the model2
model2.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the EarlyStopping callback
early_stopping = EarlyStopping(monitor='val_loss', patience=20, restore_best_weights=True, min_delta=1E-3)


# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history2=model2.fit(X_train,y_train, validation_data=(X_test,y_test),
                   epochs=100,
                   batch_size=8,
                   callbacks=[early_stopping, reduce_lr],
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 13053293 (49.79 MB)
Non-trainable params: 992 (3.88 KB)
_________________________________________________________________
Epoch 1/100
42/42 [==============================] - 8s 101ms/step - loss: 2.0078 - accuracy: 0.2395 - val_loss: 1.8968 - val_accuracy: 0.1310 - lr: 0.0010
Epoch 2/100
42/42 [==============================] - 5s 111ms/step - loss: 1.8673 - accuracy: 0.2934 - val_loss: 1.3561 - val_accuracy: 0.4762 - lr: 0.0010
Epoch 3/100
42/42 [==============================] - 3s 60ms/step - loss: 1.6273 - accuracy: 0.3802 - val_loss: 1.2188 - val_accuracy: 0.7024 - lr: 0.0010
Epoch 4/100
42/42 [==============================] - 2s 42ms/step - loss: 1.5269 - accuracy: 0.4132 - val_loss: 1.2453 - val_accuracy: 0.7024 - lr: 0.0010
Epoch 5/100
42/42 [==============================] - 2s 37ms/step - loss: 1.4737 - accuracy: 0.4521 - val_loss: 1.1626 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 6/100
42/42 [==============================] - 1s 33ms/step - loss: 1.3289 - accuracy: 0.5060 - val_loss: 1.0848 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 7/100
42/42 [==============================] - 1s 32ms/step - loss: 1.2278 - accuracy: 0.5928 - val_loss: 1.0240 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 8/100
42/42 [==============================] - 1s 28ms/step - loss: 1.2156 - accuracy: 0.5689 - val_loss: 1.0061 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 9/100
42/42 [==============================] - 2s 47ms/step - loss: 1.1193 - accuracy: 0.6527 - val_loss: 0.9567 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 10/100
42/42 [==============================] - 1s 32ms/step - loss: 1.1154 - accuracy: 0.6647 - val_loss: 0.9295 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 11/100
42/42 [==============================] - 1s 19ms/step - loss: 1.0905 - accuracy: 0.6766 - val_loss: 0.9409 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 12/100
42/42 [==============================] - 1s 24ms/step - loss: 1.0853 - accuracy: 0.6856 - val_loss: 0.9223 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 13/100
42/42 [==============================] - 1s 24ms/step - loss: 1.0057 - accuracy: 0.7006 - val_loss: 0.9198 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 14/100
42/42 [==============================] - 1s 20ms/step - loss: 1.0196 - accuracy: 0.7275 - val_loss: 0.9251 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 15/100
42/42 [==============================] - 1s 15ms/step - loss: 1.0306 - accuracy: 0.7216 - val_loss: 0.9210 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 16/100
42/42 [==============================] - 1s 19ms/step - loss: 1.0347 - accuracy: 0.7305 - val_loss: 0.9185 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 17/100
42/42 [==============================] - 1s 19ms/step - loss: 1.0208 - accuracy: 0.7335 - val_loss: 0.9331 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 18/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9881 - accuracy: 0.7216 - val_loss: 0.9199 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 19/100
42/42 [==============================] - 1s 17ms/step - loss: 0.9991 - accuracy: 0.7335 - val_loss: 0.9113 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 20/100
42/42 [==============================] - 1s 18ms/step - loss: 0.9772 - accuracy: 0.7305 - val_loss: 0.9121 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 21/100
42/42 [==============================] - 1s 15ms/step - loss: 1.0063 - accuracy: 0.7275 - val_loss: 0.9136 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 22/100
42/42 [==============================] - 1s 20ms/step - loss: 0.9669 - accuracy: 0.7365 - val_loss: 0.9134 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 23/100
42/42 [==============================] - 1s 17ms/step - loss: 0.9553 - accuracy: 0.7365 - val_loss: 0.9269 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 24/100
42/42 [==============================] - ETA: 0s - loss: 0.9530 - accuracy: 0.7365
Epoch 24: ReduceLROnPlateau reducing learning rate to 0.00010000000474974513.
42/42 [==============================] - 1s 21ms/step - loss: 0.9530 - accuracy: 0.7365 - val_loss: 0.9275 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 25/100
42/42 [==============================] - 1s 21ms/step - loss: 0.9621 - accuracy: 0.7395 - val_loss: 0.9224 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 26/100
42/42 [==============================] - 1s 16ms/step - loss: 0.9813 - accuracy: 0.7365 - val_loss: 0.9207 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 27/100
42/42 [==============================] - 1s 14ms/step - loss: 0.9867 - accuracy: 0.7305 - val_loss: 0.9184 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 28/100
42/42 [==============================] - 1s 17ms/step - loss: 0.9361 - accuracy: 0.7395 - val_loss: 0.9184 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 29/100
41/42 [============================>.] - ETA: 0s - loss: 0.9702 - accuracy: 0.7378
Epoch 29: ReduceLROnPlateau reducing learning rate to 1.0000000474974514e-05.
42/42 [==============================] - 1s 13ms/step - loss: 0.9679 - accuracy: 0.7395 - val_loss: 0.9182 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 30/100
42/42 [==============================] - 1s 12ms/step - loss: 0.9600 - accuracy: 0.7365 - val_loss: 0.9192 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 31/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9329 - accuracy: 0.7365 - val_loss: 0.9186 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 32/100
42/42 [==============================] - 1s 17ms/step - loss: 0.9288 - accuracy: 0.7365 - val_loss: 0.9188 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 33/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9428 - accuracy: 0.7395 - val_loss: 0.9187 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 34/100
39/42 [==========================>...] - ETA: 0s - loss: 0.9699 - accuracy: 0.7372
Epoch 34: ReduceLROnPlateau reducing learning rate to 1.0000000656873453e-06.
42/42 [==============================] - 1s 15ms/step - loss: 0.9681 - accuracy: 0.7395 - val_loss: 0.9177 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 35/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9855 - accuracy: 0.7395 - val_loss: 0.9177 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 36/100
42/42 [==============================] - 1s 18ms/step - loss: 0.9691 - accuracy: 0.7335 - val_loss: 0.9175 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 37/100
42/42 [==============================] - 1s 13ms/step - loss: 0.9553 - accuracy: 0.7395 - val_loss: 0.9158 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 38/100
42/42 [==============================] - 1s 15ms/step - loss: 0.9592 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381 - lr: 1.0000e-06
Epoch 39/100
42/42 [==============================] - ETA: 0s - loss: 0.9925 - accuracy: 0.7365
Epoch 39: ReduceLROnPlateau reducing learning rate to 1.0000001111620805e-07.
42/42 [==============================] - 1s 17ms/step - loss: 0.9925 - accuracy: 0.7365 - val_loss: 0.9166 - val_accuracy: 0.7381 - lr: 1.0000e-06
In [ ]:
result=function_model("ANN_5_Layers_BN_dropout_kerne_earlystop_reduceLR_trainablemebeeding",model2, history2, X_train,y_train,X_test,y_test)
ann_model_summary=ann_model_summary.append(result)
ann_model_summary.reset_index(drop=True, inplace=True)
Model:  ANN_5_Layers_BN_dropout_kerne_earlystop_reduceLR_trainablemebeeding
3/3 [==============================] - 0s 4ms/step
Train Accuracy score:  0.7365269660949707
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image
In [ ]:
ann_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 ANN_2_Layers 1.00 0.73 0.55 0.73 0.63
1 ANN_3_Layers 1.00 0.71 0.55 0.71 0.62
2 ANN_4_Layers 1.00 0.69 0.54 0.69 0.61
3 ANN_5_Layers 1.00 0.73 0.55 0.73 0.63
4 ANN_6_Layers 1.00 0.69 0.54 0.69 0.60
5 ANN_5_Layers_BN 0.98 0.68 0.55 0.68 0.61
6 ANN_5_Layers_BN_dropout 0.74 0.74 0.54 0.74 0.63
7 ANN_5_Layers_BN_dropout_kernel 0.70 0.74 0.54 0.74 0.63
8 ANN_5_Layers_BN_dropout_kernel_leakyrelu 0.71 0.74 0.54 0.74 0.63
9 ANN_5_Layers_BN_dropout_kernel_SGD 0.70 0.74 0.54 0.74 0.63
10 ANN_5_Layers_BN_dropout_kerne_reducedlr 0.72 0.74 0.54 0.74 0.63
11 ANN_5_Layers_BN_dropout_kerne_earlystop_reduceLR 0.74 0.74 0.54 0.74 0.63
12 ANN_5_Layers_BN_dropout_kerne_earlystop_reduce... 0.72 0.74 0.54 0.74 0.63

We tried varioius models for ANN. For models no 6 to no 12. we found that train accuracy and test accuracy are similar, in most cases test accuracy seems to be better than train accuracy so we can say that model is not overfitted

In [ ]:
ann_model_summary.to_pickle('ann_model_summary.pickle')

Step 2: Design, train and test RNN or LSTM classifiers¶

In [ ]:
lstm_model_summary=  pd.DataFrame()

trying with LSTM (64) and single Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )


model3.add(tf.keras.layers.LSTM(64)) #RNN State - size of cell state and hidden state


model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 lstm (LSTM)                 (None, 64)                67840     
                                                                 
 dense (Dense)               (None, 5)                 325       
                                                                 
=================================================================
Total params: 2068365 (7.89 MB)
Trainable params: 68165 (266.27 KB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 4s 93ms/step - loss: 1.3691 - accuracy: 0.5240 - val_loss: 0.9614 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 18ms/step - loss: 0.9346 - accuracy: 0.7395 - val_loss: 0.9420 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 14ms/step - loss: 0.8767 - accuracy: 0.7395 - val_loss: 0.9152 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 16ms/step - loss: 0.8516 - accuracy: 0.7395 - val_loss: 0.9123 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 14ms/step - loss: 0.8286 - accuracy: 0.7395 - val_loss: 0.9107 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 13ms/step - loss: 0.8055 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381
Epoch 7/30
11/11 [==============================] - 0s 13ms/step - loss: 0.7748 - accuracy: 0.7395 - val_loss: 0.9128 - val_accuracy: 0.7381
Epoch 8/30
11/11 [==============================] - 0s 13ms/step - loss: 0.7442 - accuracy: 0.7395 - val_loss: 0.9087 - val_accuracy: 0.7381
Epoch 9/30
11/11 [==============================] - 0s 13ms/step - loss: 0.7042 - accuracy: 0.7425 - val_loss: 0.9467 - val_accuracy: 0.7381
Epoch 10/30
11/11 [==============================] - 0s 13ms/step - loss: 0.6761 - accuracy: 0.7515 - val_loss: 0.9166 - val_accuracy: 0.7262
Epoch 11/30
11/11 [==============================] - 0s 13ms/step - loss: 0.6417 - accuracy: 0.7695 - val_loss: 0.9117 - val_accuracy: 0.7381
Epoch 12/30
11/11 [==============================] - 0s 14ms/step - loss: 0.5862 - accuracy: 0.7874 - val_loss: 0.9145 - val_accuracy: 0.7381
Epoch 13/30
11/11 [==============================] - 0s 13ms/step - loss: 0.5426 - accuracy: 0.7874 - val_loss: 0.9194 - val_accuracy: 0.7381
Epoch 14/30
11/11 [==============================] - 0s 13ms/step - loss: 0.4791 - accuracy: 0.8204 - val_loss: 0.9369 - val_accuracy: 0.7143
Epoch 15/30
11/11 [==============================] - 0s 13ms/step - loss: 0.4211 - accuracy: 0.8743 - val_loss: 1.0378 - val_accuracy: 0.7381
Epoch 16/30
11/11 [==============================] - 0s 12ms/step - loss: 0.4062 - accuracy: 0.8563 - val_loss: 1.0892 - val_accuracy: 0.7381
Epoch 17/30
11/11 [==============================] - 0s 13ms/step - loss: 0.3952 - accuracy: 0.8653 - val_loss: 0.9801 - val_accuracy: 0.7143
Epoch 18/30
11/11 [==============================] - 0s 13ms/step - loss: 0.3184 - accuracy: 0.9072 - val_loss: 1.0671 - val_accuracy: 0.6786
Epoch 19/30
11/11 [==============================] - 0s 14ms/step - loss: 0.2877 - accuracy: 0.9102 - val_loss: 1.0538 - val_accuracy: 0.6548
Epoch 20/30
11/11 [==============================] - 0s 13ms/step - loss: 0.2341 - accuracy: 0.9431 - val_loss: 1.1619 - val_accuracy: 0.6786
Epoch 21/30
11/11 [==============================] - 0s 12ms/step - loss: 0.1861 - accuracy: 0.9371 - val_loss: 1.1608 - val_accuracy: 0.6190
Epoch 22/30
11/11 [==============================] - 0s 13ms/step - loss: 0.1557 - accuracy: 0.9641 - val_loss: 1.4416 - val_accuracy: 0.6548
Epoch 23/30
11/11 [==============================] - 0s 13ms/step - loss: 0.1208 - accuracy: 0.9880 - val_loss: 1.3288 - val_accuracy: 0.6667
Epoch 24/30
11/11 [==============================] - 0s 12ms/step - loss: 0.0881 - accuracy: 0.9880 - val_loss: 1.5625 - val_accuracy: 0.6548
Epoch 25/30
11/11 [==============================] - 0s 13ms/step - loss: 0.0841 - accuracy: 0.9850 - val_loss: 1.5612 - val_accuracy: 0.6786
Epoch 26/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0667 - accuracy: 0.9880 - val_loss: 1.5670 - val_accuracy: 0.6786
Epoch 27/30
11/11 [==============================] - 0s 12ms/step - loss: 0.1089 - accuracy: 0.9790 - val_loss: 1.6055 - val_accuracy: 0.7024
Epoch 28/30
11/11 [==============================] - 0s 12ms/step - loss: 0.0730 - accuracy: 0.9850 - val_loss: 1.5749 - val_accuracy: 0.7262
Epoch 29/30
11/11 [==============================] - 0s 13ms/step - loss: 0.0640 - accuracy: 0.9880 - val_loss: 1.6529 - val_accuracy: 0.6429
Epoch 30/30
11/11 [==============================] - 0s 13ms/step - loss: 0.2622 - accuracy: 0.9341 - val_loss: 1.3052 - val_accuracy: 0.5833
In [ ]:
result=function_model("LSTM_128",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_128
3/3 [==============================] - 0s 8ms/step
Train Accuracy score:  0.9341317415237427
Test Accuracy score:  0.5833333134651184
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.74      0.74        62
           1       0.19      0.38      0.25         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.58        84
   macro avg       0.19      0.22      0.20        84
weighted avg       0.57      0.58      0.57        84

No description has been provided for this image

trying with LSTM (128) and single Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )


model3.add(tf.keras.layers.LSTM(128)) #RNN State - size of cell state and hidden state


model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 lstm (LSTM)                 (None, 128)               168448    
                                                                 
 dense (Dense)               (None, 5)                 645       
                                                                 
=================================================================
Total params: 2169293 (8.28 MB)
Trainable params: 169093 (660.52 KB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 4s 86ms/step - loss: 1.1440 - accuracy: 0.6377 - val_loss: 1.0082 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 17ms/step - loss: 0.9075 - accuracy: 0.7395 - val_loss: 0.9483 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 15ms/step - loss: 0.8571 - accuracy: 0.7395 - val_loss: 0.9344 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 14ms/step - loss: 0.8176 - accuracy: 0.7395 - val_loss: 0.9252 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 14ms/step - loss: 0.7813 - accuracy: 0.7395 - val_loss: 0.9279 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 13ms/step - loss: 0.7544 - accuracy: 0.7395 - val_loss: 0.9441 - val_accuracy: 0.7381
Epoch 7/30
11/11 [==============================] - 0s 15ms/step - loss: 0.7083 - accuracy: 0.7545 - val_loss: 0.9433 - val_accuracy: 0.7381
Epoch 8/30
11/11 [==============================] - 0s 13ms/step - loss: 0.6705 - accuracy: 0.7515 - val_loss: 0.9542 - val_accuracy: 0.7143
Epoch 9/30
11/11 [==============================] - 0s 13ms/step - loss: 0.5994 - accuracy: 0.7844 - val_loss: 0.9601 - val_accuracy: 0.7381
Epoch 10/30
11/11 [==============================] - 0s 14ms/step - loss: 0.5206 - accuracy: 0.8293 - val_loss: 1.0225 - val_accuracy: 0.5952
Epoch 11/30
11/11 [==============================] - 0s 14ms/step - loss: 0.5013 - accuracy: 0.8174 - val_loss: 1.0645 - val_accuracy: 0.7381
Epoch 12/30
11/11 [==============================] - 0s 13ms/step - loss: 0.4341 - accuracy: 0.8503 - val_loss: 1.0808 - val_accuracy: 0.6548
Epoch 13/30
11/11 [==============================] - 0s 15ms/step - loss: 0.4765 - accuracy: 0.8443 - val_loss: 1.0407 - val_accuracy: 0.6548
Epoch 14/30
11/11 [==============================] - 0s 14ms/step - loss: 0.3633 - accuracy: 0.8892 - val_loss: 1.0767 - val_accuracy: 0.6905
Epoch 15/30
11/11 [==============================] - 0s 13ms/step - loss: 0.2624 - accuracy: 0.9192 - val_loss: 1.1726 - val_accuracy: 0.7024
Epoch 16/30
11/11 [==============================] - 0s 14ms/step - loss: 0.1994 - accuracy: 0.9581 - val_loss: 1.2793 - val_accuracy: 0.6786
Epoch 17/30
11/11 [==============================] - 0s 13ms/step - loss: 0.1822 - accuracy: 0.9431 - val_loss: 1.2525 - val_accuracy: 0.6667
Epoch 18/30
11/11 [==============================] - 0s 13ms/step - loss: 0.1307 - accuracy: 0.9760 - val_loss: 1.3241 - val_accuracy: 0.6667
Epoch 19/30
11/11 [==============================] - 0s 14ms/step - loss: 0.1149 - accuracy: 0.9731 - val_loss: 1.3148 - val_accuracy: 0.6429
Epoch 20/30
11/11 [==============================] - 0s 15ms/step - loss: 0.1192 - accuracy: 0.9701 - val_loss: 1.4196 - val_accuracy: 0.7143
Epoch 21/30
11/11 [==============================] - 0s 16ms/step - loss: 0.0754 - accuracy: 0.9850 - val_loss: 1.5119 - val_accuracy: 0.6548
Epoch 22/30
11/11 [==============================] - 0s 15ms/step - loss: 0.0424 - accuracy: 0.9940 - val_loss: 1.6802 - val_accuracy: 0.6905
Epoch 23/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0265 - accuracy: 0.9970 - val_loss: 1.7926 - val_accuracy: 0.6548
Epoch 24/30
11/11 [==============================] - 0s 15ms/step - loss: 0.0300 - accuracy: 0.9940 - val_loss: 1.6919 - val_accuracy: 0.6667
Epoch 25/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0258 - accuracy: 0.9970 - val_loss: 1.8833 - val_accuracy: 0.6905
Epoch 26/30
11/11 [==============================] - 0s 15ms/step - loss: 0.0174 - accuracy: 0.9970 - val_loss: 1.8110 - val_accuracy: 0.7143
Epoch 27/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0142 - accuracy: 0.9970 - val_loss: 1.9360 - val_accuracy: 0.5952
Epoch 28/30
11/11 [==============================] - 0s 13ms/step - loss: 0.0165 - accuracy: 0.9970 - val_loss: 1.9813 - val_accuracy: 0.6429
Epoch 29/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0267 - accuracy: 0.9910 - val_loss: 1.7417 - val_accuracy: 0.6786
Epoch 30/30
11/11 [==============================] - 0s 14ms/step - loss: 0.0592 - accuracy: 0.9880 - val_loss: 1.5485 - val_accuracy: 0.5952
In [ ]:
result=function_model("LSTM_128",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_128
3/3 [==============================] - 0s 8ms/step
Train Accuracy score:  0.9880239367485046
Test Accuracy score:  0.5952380895614624
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.72      0.77      0.74        62
           1       0.33      0.12      0.18         8
           2       0.00      0.00      0.00         6
           3       0.17      0.17      0.17         6
           4       0.00      0.00      0.00         2

    accuracy                           0.60        84
   macro avg       0.24      0.21      0.22        84
weighted avg       0.57      0.60      0.58        84

No description has been provided for this image

trying with LSTM (256) and single Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )


model3.add(tf.keras.layers.LSTM(256)) #RNN State - size of cell state and hidden state


model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 lstm (LSTM)                 (None, 256)               467968    
                                                                 
 dense (Dense)               (None, 5)                 1285      
                                                                 
=================================================================
Total params: 2469453 (9.42 MB)
Trainable params: 469253 (1.79 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 3s 76ms/step - loss: 1.0223 - accuracy: 0.6796 - val_loss: 0.9224 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 20ms/step - loss: 0.8663 - accuracy: 0.7395 - val_loss: 0.9104 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 23ms/step - loss: 0.8205 - accuracy: 0.7395 - val_loss: 0.9049 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 27ms/step - loss: 0.7560 - accuracy: 0.7395 - val_loss: 0.9094 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 20ms/step - loss: 0.6971 - accuracy: 0.7485 - val_loss: 0.9866 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 25ms/step - loss: 0.6525 - accuracy: 0.7575 - val_loss: 0.9812 - val_accuracy: 0.7143
Epoch 7/30
11/11 [==============================] - 0s 20ms/step - loss: 0.5877 - accuracy: 0.7934 - val_loss: 0.9789 - val_accuracy: 0.7262
Epoch 8/30
11/11 [==============================] - 0s 21ms/step - loss: 0.4893 - accuracy: 0.8204 - val_loss: 1.0872 - val_accuracy: 0.6429
Epoch 9/30
11/11 [==============================] - 0s 23ms/step - loss: 0.3890 - accuracy: 0.8653 - val_loss: 1.0427 - val_accuracy: 0.6429
Epoch 10/30
11/11 [==============================] - 0s 26ms/step - loss: 0.3336 - accuracy: 0.8922 - val_loss: 1.2388 - val_accuracy: 0.5833
Epoch 11/30
11/11 [==============================] - 0s 20ms/step - loss: 0.2899 - accuracy: 0.9072 - val_loss: 1.1802 - val_accuracy: 0.7024
Epoch 12/30
11/11 [==============================] - 0s 24ms/step - loss: 0.1667 - accuracy: 0.9671 - val_loss: 1.5096 - val_accuracy: 0.5476
Epoch 13/30
11/11 [==============================] - 0s 24ms/step - loss: 0.1557 - accuracy: 0.9611 - val_loss: 1.4068 - val_accuracy: 0.6190
Epoch 14/30
11/11 [==============================] - 0s 22ms/step - loss: 0.1115 - accuracy: 0.9760 - val_loss: 1.5815 - val_accuracy: 0.6548
Epoch 15/30
11/11 [==============================] - 0s 26ms/step - loss: 0.1086 - accuracy: 0.9760 - val_loss: 1.4638 - val_accuracy: 0.6667
Epoch 16/30
11/11 [==============================] - 0s 19ms/step - loss: 0.0650 - accuracy: 0.9880 - val_loss: 1.6755 - val_accuracy: 0.6310
Epoch 17/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0408 - accuracy: 0.9880 - val_loss: 1.6825 - val_accuracy: 0.6786
Epoch 18/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0238 - accuracy: 0.9970 - val_loss: 1.9217 - val_accuracy: 0.6667
Epoch 19/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0170 - accuracy: 0.9970 - val_loss: 2.1237 - val_accuracy: 0.6310
Epoch 20/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0161 - accuracy: 0.9940 - val_loss: 2.1498 - val_accuracy: 0.5833
Epoch 21/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0123 - accuracy: 0.9970 - val_loss: 2.1943 - val_accuracy: 0.6429
Epoch 22/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0095 - accuracy: 0.9970 - val_loss: 2.3284 - val_accuracy: 0.6071
Epoch 23/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0104 - accuracy: 0.9970 - val_loss: 2.3849 - val_accuracy: 0.6310
Epoch 24/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0136 - accuracy: 0.9940 - val_loss: 2.4466 - val_accuracy: 0.6190
Epoch 25/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0070 - accuracy: 0.9970 - val_loss: 2.4596 - val_accuracy: 0.6190
Epoch 26/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0076 - accuracy: 0.9970 - val_loss: 2.5406 - val_accuracy: 0.6310
Epoch 27/30
11/11 [==============================] - 0s 18ms/step - loss: 0.0060 - accuracy: 0.9940 - val_loss: 2.6044 - val_accuracy: 0.6190
Epoch 28/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0057 - accuracy: 0.9970 - val_loss: 2.6463 - val_accuracy: 0.6310
Epoch 29/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0051 - accuracy: 0.9970 - val_loss: 2.6907 - val_accuracy: 0.6310
Epoch 30/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0049 - accuracy: 0.9970 - val_loss: 2.7096 - val_accuracy: 0.6310
In [ ]:
result=function_model("LSTM_256",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_256
3/3 [==============================] - 0s 10ms/step
Train Accuracy score:  0.9970059990882874
Test Accuracy score:  0.6309523582458496
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.72      0.84      0.78        62
           1       0.14      0.12      0.13         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.63        84
   macro avg       0.17      0.19      0.18        84
weighted avg       0.55      0.63      0.59        84

No description has been provided for this image

trying with LSTM (128) with droupout and single Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.LSTM(128)) #RNN State - size of cell state and hidden state
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 128)               168448    
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 dense (Dense)               (None, 5)                 645       
                                                                 
=================================================================
Total params: 2169293 (8.28 MB)
Trainable params: 169093 (660.52 KB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 4s 70ms/step - loss: 1.0837 - accuracy: 0.6737 - val_loss: 0.9773 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 23ms/step - loss: 0.9179 - accuracy: 0.7395 - val_loss: 0.9232 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 16ms/step - loss: 0.8792 - accuracy: 0.7395 - val_loss: 0.9265 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 15ms/step - loss: 0.8501 - accuracy: 0.7395 - val_loss: 0.9135 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 14ms/step - loss: 0.8338 - accuracy: 0.7395 - val_loss: 0.9148 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 14ms/step - loss: 0.8022 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381
Epoch 7/30
11/11 [==============================] - 0s 14ms/step - loss: 0.7984 - accuracy: 0.7425 - val_loss: 0.9217 - val_accuracy: 0.7381
Epoch 8/30
11/11 [==============================] - 0s 16ms/step - loss: 0.7556 - accuracy: 0.7425 - val_loss: 0.9193 - val_accuracy: 0.7381
Epoch 9/30
11/11 [==============================] - 0s 14ms/step - loss: 0.7169 - accuracy: 0.7485 - val_loss: 0.9697 - val_accuracy: 0.7381
Epoch 10/30
11/11 [==============================] - 0s 23ms/step - loss: 0.6878 - accuracy: 0.7665 - val_loss: 0.9506 - val_accuracy: 0.7143
Epoch 11/30
11/11 [==============================] - 0s 23ms/step - loss: 0.6382 - accuracy: 0.7754 - val_loss: 0.9645 - val_accuracy: 0.7381
Epoch 12/30
11/11 [==============================] - 0s 22ms/step - loss: 0.6087 - accuracy: 0.7874 - val_loss: 0.9713 - val_accuracy: 0.7381
Epoch 13/30
11/11 [==============================] - 0s 19ms/step - loss: 0.5747 - accuracy: 0.7964 - val_loss: 1.0194 - val_accuracy: 0.5833
Epoch 14/30
11/11 [==============================] - 0s 22ms/step - loss: 0.5900 - accuracy: 0.7964 - val_loss: 0.9773 - val_accuracy: 0.6905
Epoch 15/30
11/11 [==============================] - 0s 24ms/step - loss: 0.4765 - accuracy: 0.8234 - val_loss: 1.0453 - val_accuracy: 0.7143
Epoch 16/30
11/11 [==============================] - 0s 19ms/step - loss: 0.4536 - accuracy: 0.8443 - val_loss: 1.1515 - val_accuracy: 0.7381
Epoch 17/30
11/11 [==============================] - 0s 27ms/step - loss: 0.4089 - accuracy: 0.8623 - val_loss: 1.0305 - val_accuracy: 0.6548
Epoch 18/30
11/11 [==============================] - 0s 20ms/step - loss: 0.3790 - accuracy: 0.8832 - val_loss: 1.0815 - val_accuracy: 0.6786
Epoch 19/30
11/11 [==============================] - 0s 21ms/step - loss: 0.3041 - accuracy: 0.8922 - val_loss: 1.2227 - val_accuracy: 0.6071
Epoch 20/30
11/11 [==============================] - 0s 20ms/step - loss: 0.3152 - accuracy: 0.8892 - val_loss: 1.2861 - val_accuracy: 0.6667
Epoch 21/30
11/11 [==============================] - 0s 23ms/step - loss: 0.2943 - accuracy: 0.8952 - val_loss: 1.3319 - val_accuracy: 0.6429
Epoch 22/30
11/11 [==============================] - 0s 26ms/step - loss: 0.2272 - accuracy: 0.9281 - val_loss: 1.3248 - val_accuracy: 0.5952
Epoch 23/30
11/11 [==============================] - 0s 19ms/step - loss: 0.2146 - accuracy: 0.9431 - val_loss: 1.3933 - val_accuracy: 0.6190
Epoch 24/30
11/11 [==============================] - 0s 15ms/step - loss: 0.2013 - accuracy: 0.9311 - val_loss: 1.6604 - val_accuracy: 0.6786
Epoch 25/30
11/11 [==============================] - 0s 14ms/step - loss: 0.2292 - accuracy: 0.9341 - val_loss: 1.5421 - val_accuracy: 0.7024
Epoch 26/30
11/11 [==============================] - 0s 15ms/step - loss: 0.2205 - accuracy: 0.9281 - val_loss: 1.5757 - val_accuracy: 0.6429
Epoch 27/30
11/11 [==============================] - 0s 13ms/step - loss: 0.1673 - accuracy: 0.9611 - val_loss: 1.4450 - val_accuracy: 0.6429
Epoch 28/30
11/11 [==============================] - 0s 14ms/step - loss: 0.1392 - accuracy: 0.9551 - val_loss: 1.5652 - val_accuracy: 0.6548
Epoch 29/30
11/11 [==============================] - 0s 14ms/step - loss: 0.1443 - accuracy: 0.9581 - val_loss: 1.6800 - val_accuracy: 0.6071
Epoch 30/30
11/11 [==============================] - 0s 13ms/step - loss: 0.0840 - accuracy: 0.9820 - val_loss: 1.8772 - val_accuracy: 0.5833
In [ ]:
result=function_model("LSTM_128_droupout",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_128_droupout
3/3 [==============================] - 0s 8ms/step
Train Accuracy score:  0.9820359349250793
Test Accuracy score:  0.5833333134651184
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.72      0.79      0.75        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.58        84
   macro avg       0.14      0.16      0.15        84
weighted avg       0.53      0.58      0.56        84

No description has been provided for this image

trying with LSTM (256) with droupout and single Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.LSTM(256)) #RNN State - size of cell state and hidden state
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 256)               467968    
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 5)                 1285      
                                                                 
=================================================================
Total params: 2469453 (9.42 MB)
Trainable params: 469253 (1.79 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 3s 73ms/step - loss: 1.0415 - accuracy: 0.6796 - val_loss: 0.9283 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 22ms/step - loss: 0.8736 - accuracy: 0.7395 - val_loss: 0.9231 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 17ms/step - loss: 0.8515 - accuracy: 0.7395 - val_loss: 0.9214 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 18ms/step - loss: 0.8017 - accuracy: 0.7395 - val_loss: 0.9262 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 17ms/step - loss: 0.7727 - accuracy: 0.7455 - val_loss: 0.9217 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 18ms/step - loss: 0.7309 - accuracy: 0.7575 - val_loss: 1.0461 - val_accuracy: 0.6786
Epoch 7/30
11/11 [==============================] - 0s 17ms/step - loss: 0.7407 - accuracy: 0.7485 - val_loss: 0.9424 - val_accuracy: 0.7381
Epoch 8/30
11/11 [==============================] - 0s 17ms/step - loss: 0.6813 - accuracy: 0.7665 - val_loss: 0.9400 - val_accuracy: 0.7381
Epoch 9/30
11/11 [==============================] - 0s 17ms/step - loss: 0.6587 - accuracy: 0.7665 - val_loss: 1.0400 - val_accuracy: 0.7381
Epoch 10/30
11/11 [==============================] - 0s 18ms/step - loss: 0.5888 - accuracy: 0.7934 - val_loss: 0.9850 - val_accuracy: 0.7143
Epoch 11/30
11/11 [==============================] - 0s 17ms/step - loss: 0.5505 - accuracy: 0.7964 - val_loss: 1.1286 - val_accuracy: 0.7262
Epoch 12/30
11/11 [==============================] - 0s 18ms/step - loss: 0.4872 - accuracy: 0.8323 - val_loss: 1.1262 - val_accuracy: 0.6905
Epoch 13/30
11/11 [==============================] - 0s 18ms/step - loss: 0.4682 - accuracy: 0.8383 - val_loss: 1.0240 - val_accuracy: 0.6667
Epoch 14/30
11/11 [==============================] - 0s 18ms/step - loss: 0.4773 - accuracy: 0.8413 - val_loss: 1.1020 - val_accuracy: 0.7143
Epoch 15/30
11/11 [==============================] - 0s 17ms/step - loss: 0.3303 - accuracy: 0.8832 - val_loss: 1.1282 - val_accuracy: 0.5833
Epoch 16/30
11/11 [==============================] - 0s 18ms/step - loss: 0.2951 - accuracy: 0.8922 - val_loss: 1.2299 - val_accuracy: 0.7381
Epoch 17/30
11/11 [==============================] - 0s 17ms/step - loss: 0.2397 - accuracy: 0.9162 - val_loss: 1.2297 - val_accuracy: 0.6190
Epoch 18/30
11/11 [==============================] - 0s 17ms/step - loss: 0.2268 - accuracy: 0.9401 - val_loss: 1.4171 - val_accuracy: 0.6667
Epoch 19/30
11/11 [==============================] - 0s 17ms/step - loss: 0.1745 - accuracy: 0.9401 - val_loss: 1.4320 - val_accuracy: 0.6310
Epoch 20/30
11/11 [==============================] - 0s 18ms/step - loss: 0.1449 - accuracy: 0.9611 - val_loss: 1.5753 - val_accuracy: 0.6548
Epoch 21/30
11/11 [==============================] - 0s 17ms/step - loss: 0.1309 - accuracy: 0.9671 - val_loss: 1.7329 - val_accuracy: 0.5476
Epoch 22/30
11/11 [==============================] - 0s 17ms/step - loss: 0.1578 - accuracy: 0.9431 - val_loss: 1.5285 - val_accuracy: 0.6071
Epoch 23/30
11/11 [==============================] - 0s 17ms/step - loss: 0.1616 - accuracy: 0.9551 - val_loss: 1.6923 - val_accuracy: 0.6190
Epoch 24/30
11/11 [==============================] - 0s 18ms/step - loss: 0.1017 - accuracy: 0.9731 - val_loss: 1.7514 - val_accuracy: 0.6905
Epoch 25/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0743 - accuracy: 0.9820 - val_loss: 1.6802 - val_accuracy: 0.6667
Epoch 26/30
11/11 [==============================] - 0s 18ms/step - loss: 0.0826 - accuracy: 0.9760 - val_loss: 1.9608 - val_accuracy: 0.5952
Epoch 27/30
11/11 [==============================] - 0s 18ms/step - loss: 0.1042 - accuracy: 0.9581 - val_loss: 1.7681 - val_accuracy: 0.6190
Epoch 28/30
11/11 [==============================] - 0s 17ms/step - loss: 0.0954 - accuracy: 0.9731 - val_loss: 1.8963 - val_accuracy: 0.5833
Epoch 29/30
11/11 [==============================] - 0s 18ms/step - loss: 0.0913 - accuracy: 0.9760 - val_loss: 1.6688 - val_accuracy: 0.6548
Epoch 30/30
11/11 [==============================] - 0s 18ms/step - loss: 0.0487 - accuracy: 0.9940 - val_loss: 2.0271 - val_accuracy: 0.5476
In [ ]:
result=function_model("LSTM_256_droupout",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_256_droupout
WARNING:tensorflow:5 out of the last 13 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7ec2b3297f40> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for  more details.
3/3 [==============================] - 0s 8ms/step
Train Accuracy score:  0.9940119981765747
Test Accuracy score:  0.5476190447807312
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.71      0.74      0.72        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.55        84
   macro avg       0.14      0.15      0.14        84
weighted avg       0.52      0.55      0.53        84

No description has been provided for this image

There isnt much difference for LSTM-128 and 256, pursuing further models with LSTM-256

trying with LSTM (256) with droupout and multiple Dense¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.LSTM(256)) #RNN State - size of cell state and hidden state
model3.add(tf.keras.layers.Dropout(0.3))


#model3.add(tf.keras.layers.Dense(256, activation='relu'))
model3.add(tf.keras.layers.Dense(128, activation='relu'))
model3.add(tf.keras.layers.Dense(64, activation='relu'))
model3.add(tf.keras.layers.Dense(32, activation='relu'))
model3.add(tf.keras.layers.Dense(16, activation='relu'))

model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 256)               467968    
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2512013 (9.58 MB)
Trainable params: 511813 (1.95 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
11/11 [==============================] - 9s 158ms/step - loss: 1.4381 - accuracy: 0.5210 - val_loss: 1.1819 - val_accuracy: 0.7381
Epoch 2/30
11/11 [==============================] - 0s 40ms/step - loss: 1.1491 - accuracy: 0.7395 - val_loss: 1.0262 - val_accuracy: 0.7381
Epoch 3/30
11/11 [==============================] - 0s 39ms/step - loss: 0.9848 - accuracy: 0.7395 - val_loss: 0.9398 - val_accuracy: 0.7381
Epoch 4/30
11/11 [==============================] - 0s 37ms/step - loss: 0.9201 - accuracy: 0.7395 - val_loss: 0.9234 - val_accuracy: 0.7381
Epoch 5/30
11/11 [==============================] - 0s 37ms/step - loss: 0.9117 - accuracy: 0.7395 - val_loss: 0.9339 - val_accuracy: 0.7381
Epoch 6/30
11/11 [==============================] - 0s 26ms/step - loss: 0.9269 - accuracy: 0.7395 - val_loss: 0.9179 - val_accuracy: 0.7381
Epoch 7/30
11/11 [==============================] - 0s 26ms/step - loss: 0.9183 - accuracy: 0.7395 - val_loss: 0.9215 - val_accuracy: 0.7381
Epoch 8/30
11/11 [==============================] - 0s 22ms/step - loss: 0.9010 - accuracy: 0.7395 - val_loss: 0.9213 - val_accuracy: 0.7381
Epoch 9/30
11/11 [==============================] - 0s 25ms/step - loss: 0.9032 - accuracy: 0.7395 - val_loss: 0.9276 - val_accuracy: 0.7381
Epoch 10/30
11/11 [==============================] - 0s 26ms/step - loss: 0.9091 - accuracy: 0.7395 - val_loss: 0.9276 - val_accuracy: 0.7381
Epoch 11/30
11/11 [==============================] - 0s 24ms/step - loss: 0.8970 - accuracy: 0.7395 - val_loss: 0.9207 - val_accuracy: 0.7381
Epoch 12/30
11/11 [==============================] - 0s 26ms/step - loss: 0.8820 - accuracy: 0.7395 - val_loss: 0.9262 - val_accuracy: 0.7381
Epoch 13/30
11/11 [==============================] - 0s 26ms/step - loss: 0.8698 - accuracy: 0.7395 - val_loss: 0.9242 - val_accuracy: 0.7381
Epoch 14/30
11/11 [==============================] - 0s 30ms/step - loss: 0.8648 - accuracy: 0.7395 - val_loss: 0.9325 - val_accuracy: 0.7381
Epoch 15/30
11/11 [==============================] - 0s 25ms/step - loss: 0.8433 - accuracy: 0.7395 - val_loss: 0.9392 - val_accuracy: 0.7381
Epoch 16/30
11/11 [==============================] - 0s 27ms/step - loss: 0.8437 - accuracy: 0.7395 - val_loss: 0.9573 - val_accuracy: 0.7381
Epoch 17/30
11/11 [==============================] - 0s 26ms/step - loss: 0.8249 - accuracy: 0.7395 - val_loss: 0.9442 - val_accuracy: 0.7381
Epoch 18/30
11/11 [==============================] - 0s 23ms/step - loss: 0.8118 - accuracy: 0.7395 - val_loss: 0.9269 - val_accuracy: 0.7381
Epoch 19/30
11/11 [==============================] - 0s 30ms/step - loss: 0.7873 - accuracy: 0.7395 - val_loss: 0.9462 - val_accuracy: 0.7381
Epoch 20/30
11/11 [==============================] - 0s 25ms/step - loss: 0.7897 - accuracy: 0.7395 - val_loss: 0.9607 - val_accuracy: 0.7381
Epoch 21/30
11/11 [==============================] - 0s 29ms/step - loss: 0.7361 - accuracy: 0.7395 - val_loss: 0.9613 - val_accuracy: 0.7381
Epoch 22/30
11/11 [==============================] - 0s 21ms/step - loss: 0.7359 - accuracy: 0.7365 - val_loss: 1.0346 - val_accuracy: 0.7024
Epoch 23/30
11/11 [==============================] - 0s 19ms/step - loss: 0.7434 - accuracy: 0.7425 - val_loss: 0.9765 - val_accuracy: 0.7381
Epoch 24/30
11/11 [==============================] - 0s 19ms/step - loss: 0.7211 - accuracy: 0.7455 - val_loss: 1.0366 - val_accuracy: 0.7381
Epoch 25/30
11/11 [==============================] - 0s 19ms/step - loss: 0.6914 - accuracy: 0.7425 - val_loss: 1.0985 - val_accuracy: 0.7381
Epoch 26/30
11/11 [==============================] - 0s 18ms/step - loss: 0.6413 - accuracy: 0.7485 - val_loss: 1.0401 - val_accuracy: 0.7262
Epoch 27/30
11/11 [==============================] - 0s 20ms/step - loss: 0.6289 - accuracy: 0.7814 - val_loss: 1.0609 - val_accuracy: 0.6190
Epoch 28/30
11/11 [==============================] - 0s 18ms/step - loss: 0.5820 - accuracy: 0.7934 - val_loss: 1.2196 - val_accuracy: 0.6429
Epoch 29/30
11/11 [==============================] - 0s 18ms/step - loss: 0.5322 - accuracy: 0.8054 - val_loss: 1.2434 - val_accuracy: 0.5952
Epoch 30/30
11/11 [==============================] - 0s 22ms/step - loss: 0.5568 - accuracy: 0.8204 - val_loss: 1.3388 - val_accuracy: 0.5119
In [ ]:
result=function_model("LSTM_256_droupout_dense",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_256_droupout_dense
WARNING:tensorflow:5 out of the last 13 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7ec32040b7f0> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for  more details.
3/3 [==============================] - 1s 13ms/step
Train Accuracy score:  0.8203592896461487
Test Accuracy score:  0.511904776096344
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.70      0.63      0.66        62
           1       0.29      0.25      0.27         8
           2       0.10      0.17      0.12         6
           3       0.09      0.17      0.12         6
           4       0.00      0.00      0.00         2

    accuracy                           0.51        84
   macro avg       0.23      0.24      0.23        84
weighted avg       0.55      0.51      0.53        84

No description has been provided for this image

trying with LSTM with droupout and multiple Dense with droupout¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.LSTM(256)) #RNN State - size of cell state and hidden state
model3.add(tf.keras.layers.Dropout(0.3))


#model3.add(tf.keras.layers.Dense(256, activation='relu'))
#model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(128, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(64, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(32, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(16, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=16,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 256)               467968    
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2512013 (9.58 MB)
Trainable params: 511813 (1.95 MB)
Non-trainable params: 2000200 (7.63 MB)
_________________________________________________________________
Epoch 1/30
21/21 [==============================] - 5s 56ms/step - loss: 1.5247 - accuracy: 0.2186 - val_loss: 1.2030 - val_accuracy: 0.7381
Epoch 2/30
21/21 [==============================] - 0s 21ms/step - loss: 1.2826 - accuracy: 0.5749 - val_loss: 1.0796 - val_accuracy: 0.7381
Epoch 3/30
21/21 [==============================] - 0s 21ms/step - loss: 1.1946 - accuracy: 0.6497 - val_loss: 1.0535 - val_accuracy: 0.7381
Epoch 4/30
21/21 [==============================] - 0s 21ms/step - loss: 1.1269 - accuracy: 0.6946 - val_loss: 1.0044 - val_accuracy: 0.7381
Epoch 5/30
21/21 [==============================] - 0s 21ms/step - loss: 1.0658 - accuracy: 0.7036 - val_loss: 0.9758 - val_accuracy: 0.7381
Epoch 6/30
21/21 [==============================] - 0s 22ms/step - loss: 1.0538 - accuracy: 0.7036 - val_loss: 0.9766 - val_accuracy: 0.7381
Epoch 7/30
21/21 [==============================] - 0s 22ms/step - loss: 1.0494 - accuracy: 0.7246 - val_loss: 0.9418 - val_accuracy: 0.7381
Epoch 8/30
21/21 [==============================] - 0s 20ms/step - loss: 1.0296 - accuracy: 0.7275 - val_loss: 0.9470 - val_accuracy: 0.7381
Epoch 9/30
21/21 [==============================] - 0s 16ms/step - loss: 0.9466 - accuracy: 0.7335 - val_loss: 0.9555 - val_accuracy: 0.7381
Epoch 10/30
21/21 [==============================] - 0s 16ms/step - loss: 0.9654 - accuracy: 0.7365 - val_loss: 1.0370 - val_accuracy: 0.7381
Epoch 11/30
21/21 [==============================] - 0s 16ms/step - loss: 0.9706 - accuracy: 0.7305 - val_loss: 0.9780 - val_accuracy: 0.7381
Epoch 12/30
21/21 [==============================] - 0s 15ms/step - loss: 0.9563 - accuracy: 0.7365 - val_loss: 0.9748 - val_accuracy: 0.7381
Epoch 13/30
21/21 [==============================] - 0s 15ms/step - loss: 0.8808 - accuracy: 0.7395 - val_loss: 0.9906 - val_accuracy: 0.7381
Epoch 14/30
21/21 [==============================] - 0s 16ms/step - loss: 0.8588 - accuracy: 0.7395 - val_loss: 1.0315 - val_accuracy: 0.7381
Epoch 15/30
21/21 [==============================] - 0s 15ms/step - loss: 0.8208 - accuracy: 0.7395 - val_loss: 1.1270 - val_accuracy: 0.7381
Epoch 16/30
21/21 [==============================] - 0s 15ms/step - loss: 0.7873 - accuracy: 0.7365 - val_loss: 1.2142 - val_accuracy: 0.7381
Epoch 17/30
21/21 [==============================] - 0s 16ms/step - loss: 0.8209 - accuracy: 0.7395 - val_loss: 1.0457 - val_accuracy: 0.7381
Epoch 18/30
21/21 [==============================] - 0s 15ms/step - loss: 0.7969 - accuracy: 0.7395 - val_loss: 1.0753 - val_accuracy: 0.7381
Epoch 19/30
21/21 [==============================] - 0s 16ms/step - loss: 0.7775 - accuracy: 0.7395 - val_loss: 1.0644 - val_accuracy: 0.7381
Epoch 20/30
21/21 [==============================] - 0s 15ms/step - loss: 0.6693 - accuracy: 0.7395 - val_loss: 1.2219 - val_accuracy: 0.7381
Epoch 21/30
21/21 [==============================] - 0s 15ms/step - loss: 0.6671 - accuracy: 0.7395 - val_loss: 1.3149 - val_accuracy: 0.7381
Epoch 22/30
21/21 [==============================] - 0s 15ms/step - loss: 0.6187 - accuracy: 0.7395 - val_loss: 1.4374 - val_accuracy: 0.7381
Epoch 23/30
21/21 [==============================] - 0s 16ms/step - loss: 0.6089 - accuracy: 0.7425 - val_loss: 1.5957 - val_accuracy: 0.7381
Epoch 24/30
21/21 [==============================] - 0s 16ms/step - loss: 0.6665 - accuracy: 0.7395 - val_loss: 1.6737 - val_accuracy: 0.7381
Epoch 25/30
21/21 [==============================] - 0s 16ms/step - loss: 0.6038 - accuracy: 0.7455 - val_loss: 1.6780 - val_accuracy: 0.7381
Epoch 26/30
21/21 [==============================] - 0s 16ms/step - loss: 0.6048 - accuracy: 0.7455 - val_loss: 1.5458 - val_accuracy: 0.7381
Epoch 27/30
21/21 [==============================] - 0s 16ms/step - loss: 0.5760 - accuracy: 0.7605 - val_loss: 1.4660 - val_accuracy: 0.6905
Epoch 28/30
21/21 [==============================] - 0s 17ms/step - loss: 0.5258 - accuracy: 0.7934 - val_loss: 2.1162 - val_accuracy: 0.6667
Epoch 29/30
21/21 [==============================] - 0s 17ms/step - loss: 0.5329 - accuracy: 0.7695 - val_loss: 1.9310 - val_accuracy: 0.6667
Epoch 30/30
21/21 [==============================] - 0s 16ms/step - loss: 0.4738 - accuracy: 0.8114 - val_loss: 2.3407 - val_accuracy: 0.6786
In [ ]:
result=function_model("LSTM_256_droupout_dense_dropout",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_256_droupout_dense_dropout
3/3 [==============================] - 1s 11ms/step
Train Accuracy score:  0.811377227306366
Test Accuracy score:  0.6785714030265808
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.90      0.81        62
           1       0.00      0.00      0.00         8
           2       0.20      0.17      0.18         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.68        84
   macro avg       0.19      0.21      0.20        84
weighted avg       0.56      0.68      0.61        84

No description has been provided for this image

trying with LSTM with multiple Dense droupout, Batch Normalization¶

In [ ]:
#preparing model3

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model3 = tf.keras.Sequential()

model3.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model3
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.LSTM(256)) #RNN State - size of cell state and hidden state
model3.add(tf.keras.layers.Dropout(0.3))


#model3.add(tf.keras.layers.Dense(256, activation='relu'))
#model3.add(tf.keras.layers.Dropout(0.3))

model3.add(tf.keras.layers.Dense(128, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.5))
model3.add(tf.keras.layers.BatchNormalization())

model3.add(tf.keras.layers.Dense(64, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.5))
model3.add(tf.keras.layers.BatchNormalization())

model3.add(tf.keras.layers.Dense(32, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.5))
model3.add(tf.keras.layers.BatchNormalization())

model3.add(tf.keras.layers.Dense(16, activation='relu'))
model3.add(tf.keras.layers.Dropout(0.5))
model3.add(tf.keras.layers.BatchNormalization())

model3.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model3 summary
model3.summary()


#Compile the model3
model3.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history3=model3.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=16,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 256)               467968    
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2512973 (9.59 MB)
Trainable params: 512293 (1.95 MB)
Non-trainable params: 2000680 (7.63 MB)
_________________________________________________________________
Epoch 1/30
21/21 [==============================] - 7s 74ms/step - loss: 2.1238 - accuracy: 0.1617 - val_loss: 1.4852 - val_accuracy: 0.7381
Epoch 2/30
21/21 [==============================] - 0s 19ms/step - loss: 1.9364 - accuracy: 0.1856 - val_loss: 1.3817 - val_accuracy: 0.7381
Epoch 3/30
21/21 [==============================] - 0s 18ms/step - loss: 1.9313 - accuracy: 0.2335 - val_loss: 1.3419 - val_accuracy: 0.7381
Epoch 4/30
21/21 [==============================] - 0s 18ms/step - loss: 1.7652 - accuracy: 0.2814 - val_loss: 1.2492 - val_accuracy: 0.7381
Epoch 5/30
21/21 [==============================] - 0s 18ms/step - loss: 1.6348 - accuracy: 0.3383 - val_loss: 1.2799 - val_accuracy: 0.7381
Epoch 6/30
21/21 [==============================] - 0s 18ms/step - loss: 1.6062 - accuracy: 0.3263 - val_loss: 1.1850 - val_accuracy: 0.7381
Epoch 7/30
21/21 [==============================] - 0s 17ms/step - loss: 1.5710 - accuracy: 0.3982 - val_loss: 1.1608 - val_accuracy: 0.7381
Epoch 8/30
21/21 [==============================] - 0s 19ms/step - loss: 1.5099 - accuracy: 0.4192 - val_loss: 1.1436 - val_accuracy: 0.7381
Epoch 9/30
21/21 [==============================] - 0s 17ms/step - loss: 1.4260 - accuracy: 0.4491 - val_loss: 1.1103 - val_accuracy: 0.7381
Epoch 10/30
21/21 [==============================] - 0s 17ms/step - loss: 1.3395 - accuracy: 0.5060 - val_loss: 1.1097 - val_accuracy: 0.7381
Epoch 11/30
21/21 [==============================] - 0s 18ms/step - loss: 1.3495 - accuracy: 0.5030 - val_loss: 1.0706 - val_accuracy: 0.7381
Epoch 12/30
21/21 [==============================] - 0s 17ms/step - loss: 1.2386 - accuracy: 0.5539 - val_loss: 1.0002 - val_accuracy: 0.7381
Epoch 13/30
21/21 [==============================] - 0s 17ms/step - loss: 1.2354 - accuracy: 0.5778 - val_loss: 0.9676 - val_accuracy: 0.7381
Epoch 14/30
21/21 [==============================] - 0s 20ms/step - loss: 1.1330 - accuracy: 0.6078 - val_loss: 0.9655 - val_accuracy: 0.7381
Epoch 15/30
21/21 [==============================] - 1s 24ms/step - loss: 1.1659 - accuracy: 0.6407 - val_loss: 0.9568 - val_accuracy: 0.7381
Epoch 16/30
21/21 [==============================] - 1s 25ms/step - loss: 1.1296 - accuracy: 0.6437 - val_loss: 0.9540 - val_accuracy: 0.7381
Epoch 17/30
21/21 [==============================] - 0s 23ms/step - loss: 1.1090 - accuracy: 0.6737 - val_loss: 0.9405 - val_accuracy: 0.7381
Epoch 18/30
21/21 [==============================] - 1s 25ms/step - loss: 1.0793 - accuracy: 0.6557 - val_loss: 0.9284 - val_accuracy: 0.7381
Epoch 19/30
21/21 [==============================] - 1s 25ms/step - loss: 1.0890 - accuracy: 0.6737 - val_loss: 0.9230 - val_accuracy: 0.7381
Epoch 20/30
21/21 [==============================] - 1s 28ms/step - loss: 1.0684 - accuracy: 0.7036 - val_loss: 0.9242 - val_accuracy: 0.7381
Epoch 21/30
21/21 [==============================] - 0s 19ms/step - loss: 1.0761 - accuracy: 0.7066 - val_loss: 0.9233 - val_accuracy: 0.7381
Epoch 22/30
21/21 [==============================] - 0s 18ms/step - loss: 1.0507 - accuracy: 0.7186 - val_loss: 0.9206 - val_accuracy: 0.7381
Epoch 23/30
21/21 [==============================] - 0s 18ms/step - loss: 1.0725 - accuracy: 0.7066 - val_loss: 0.9190 - val_accuracy: 0.7381
Epoch 24/30
21/21 [==============================] - 0s 19ms/step - loss: 1.0124 - accuracy: 0.7036 - val_loss: 0.9224 - val_accuracy: 0.7381
Epoch 25/30
21/21 [==============================] - 0s 19ms/step - loss: 0.9827 - accuracy: 0.7246 - val_loss: 0.9236 - val_accuracy: 0.7381
Epoch 26/30
21/21 [==============================] - 0s 18ms/step - loss: 1.0243 - accuracy: 0.7036 - val_loss: 0.9270 - val_accuracy: 0.7381
Epoch 27/30
21/21 [==============================] - 0s 18ms/step - loss: 1.0096 - accuracy: 0.7305 - val_loss: 0.9272 - val_accuracy: 0.7381
Epoch 28/30
21/21 [==============================] - 0s 18ms/step - loss: 0.9951 - accuracy: 0.7305 - val_loss: 0.9238 - val_accuracy: 0.7381
Epoch 29/30
21/21 [==============================] - 0s 17ms/step - loss: 1.0208 - accuracy: 0.7186 - val_loss: 0.9245 - val_accuracy: 0.7381
Epoch 30/30
21/21 [==============================] - 0s 18ms/step - loss: 1.0284 - accuracy: 0.7365 - val_loss: 0.9251 - val_accuracy: 0.7381
In [ ]:
result=function_model("LSTM_256_droupout_dense_dropout_BN",model3, history3, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  LSTM_256_droupout_dense_dropout_BN
3/3 [==============================] - 0s 11ms/step
Train Accuracy score:  0.7365269660949707
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

Trying Stacked LSTM¶

In [ ]:
#preparing model5

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model5 = tf.keras.Sequential()

model5.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model5
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model5.add(tf.keras.layers.Dropout(0.3))

model5.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model5.add(tf.keras.layers.Dropout(0.3))
model5.add(tf.keras.layers.LSTM(128)) #RNN State - size of cell state and hidden state
model5.add(tf.keras.layers.Dropout(0.3))


#model5.add(tf.keras.layers.Dense(256, activation='relu'))
#model5.add(tf.keras.layers.Dropout(0.3))

model5.add(tf.keras.layers.Dense(128, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(64, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(32, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(16, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model5 summary
model5.summary()


#Compile the model5
model5.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history5=model5.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=16,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 lstm (LSTM)                 (None, 215, 256)          467968    
                                                                 
 dropout_1 (Dropout)         (None, 215, 256)          0         
                                                                 
 lstm_1 (LSTM)               (None, 128)               197120    
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 dense (Dense)               (None, 128)               16512     
                                                                 
 dropout_3 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_4 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_5 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_6 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2693709 (10.28 MB)
Trainable params: 693029 (2.64 MB)
Non-trainable params: 2000680 (7.63 MB)
_________________________________________________________________
Epoch 1/30
21/21 [==============================] - 7s 76ms/step - loss: 1.9651 - accuracy: 0.2096 - val_loss: 1.5258 - val_accuracy: 0.7381
Epoch 2/30
21/21 [==============================] - 1s 56ms/step - loss: 1.7953 - accuracy: 0.2246 - val_loss: 1.5167 - val_accuracy: 0.7381
Epoch 3/30
21/21 [==============================] - 1s 27ms/step - loss: 1.7159 - accuracy: 0.3024 - val_loss: 1.4715 - val_accuracy: 0.7381
Epoch 4/30
21/21 [==============================] - 1s 35ms/step - loss: 1.6796 - accuracy: 0.3144 - val_loss: 1.4040 - val_accuracy: 0.7381
Epoch 5/30
21/21 [==============================] - 1s 36ms/step - loss: 1.6305 - accuracy: 0.3623 - val_loss: 1.3578 - val_accuracy: 0.7381
Epoch 6/30
21/21 [==============================] - 1s 36ms/step - loss: 1.5348 - accuracy: 0.3832 - val_loss: 1.3281 - val_accuracy: 0.7381
Epoch 7/30
21/21 [==============================] - 1s 38ms/step - loss: 1.5088 - accuracy: 0.4281 - val_loss: 1.3142 - val_accuracy: 0.7381
Epoch 8/30
21/21 [==============================] - 1s 31ms/step - loss: 1.4632 - accuracy: 0.4790 - val_loss: 1.2439 - val_accuracy: 0.7381
Epoch 9/30
21/21 [==============================] - 1s 26ms/step - loss: 1.4065 - accuracy: 0.5329 - val_loss: 1.1799 - val_accuracy: 0.7381
Epoch 10/30
21/21 [==============================] - 1s 26ms/step - loss: 1.3518 - accuracy: 0.5389 - val_loss: 1.1276 - val_accuracy: 0.7381
Epoch 11/30
21/21 [==============================] - 1s 26ms/step - loss: 1.2697 - accuracy: 0.5868 - val_loss: 1.0801 - val_accuracy: 0.7381
Epoch 12/30
21/21 [==============================] - 1s 27ms/step - loss: 1.2780 - accuracy: 0.5868 - val_loss: 1.0933 - val_accuracy: 0.7381
Epoch 13/30
21/21 [==============================] - 1s 26ms/step - loss: 1.2399 - accuracy: 0.6108 - val_loss: 1.0517 - val_accuracy: 0.7381
Epoch 14/30
21/21 [==============================] - 1s 26ms/step - loss: 1.2015 - accuracy: 0.6377 - val_loss: 1.0167 - val_accuracy: 0.7381
Epoch 15/30
21/21 [==============================] - 1s 26ms/step - loss: 1.1578 - accuracy: 0.6317 - val_loss: 0.9973 - val_accuracy: 0.7381
Epoch 16/30
21/21 [==============================] - 1s 27ms/step - loss: 1.1054 - accuracy: 0.6647 - val_loss: 0.9664 - val_accuracy: 0.7381
Epoch 17/30
21/21 [==============================] - 1s 26ms/step - loss: 1.1135 - accuracy: 0.6796 - val_loss: 0.9483 - val_accuracy: 0.7381
Epoch 18/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0726 - accuracy: 0.6886 - val_loss: 0.9432 - val_accuracy: 0.7381
Epoch 19/30
21/21 [==============================] - 1s 27ms/step - loss: 1.1106 - accuracy: 0.6886 - val_loss: 0.9571 - val_accuracy: 0.7381
Epoch 20/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0648 - accuracy: 0.7006 - val_loss: 0.9468 - val_accuracy: 0.7381
Epoch 21/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0299 - accuracy: 0.7156 - val_loss: 0.9401 - val_accuracy: 0.7381
Epoch 22/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0337 - accuracy: 0.7216 - val_loss: 0.9345 - val_accuracy: 0.7381
Epoch 23/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0432 - accuracy: 0.7126 - val_loss: 0.9294 - val_accuracy: 0.7381
Epoch 24/30
21/21 [==============================] - 1s 26ms/step - loss: 1.0345 - accuracy: 0.7126 - val_loss: 0.9286 - val_accuracy: 0.7381
Epoch 25/30
21/21 [==============================] - 1s 27ms/step - loss: 1.0047 - accuracy: 0.7246 - val_loss: 0.9272 - val_accuracy: 0.7381
Epoch 26/30
21/21 [==============================] - 1s 38ms/step - loss: 0.9967 - accuracy: 0.7335 - val_loss: 0.9241 - val_accuracy: 0.7381
Epoch 27/30
21/21 [==============================] - 1s 35ms/step - loss: 0.9824 - accuracy: 0.7305 - val_loss: 0.9234 - val_accuracy: 0.7381
Epoch 28/30
21/21 [==============================] - 1s 39ms/step - loss: 1.0117 - accuracy: 0.7305 - val_loss: 0.9215 - val_accuracy: 0.7381
Epoch 29/30
21/21 [==============================] - 1s 41ms/step - loss: 1.0341 - accuracy: 0.7216 - val_loss: 0.9187 - val_accuracy: 0.7381
Epoch 30/30
21/21 [==============================] - 1s 31ms/step - loss: 0.9751 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
In [ ]:
result=function_model("stackedLSTM",model5, history5, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  stackedLSTM
3/3 [==============================] - 1s 15ms/step
Train Accuracy score:  0.7395209670066833
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

Trying Bi-directional LSTM¶

In [ ]:
#preparing model_bidirectional_LSTM

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model_bidirectional_LSTM = tf.keras.Sequential()

model_bidirectional_LSTM.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model_bidirectional_LSTM
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.3))

model_bidirectional_LSTM.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(256), merge_mode='sum'))
#model_bidirectional_LSTM.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.3))


#model_bidirectional_LSTM.add(tf.keras.layers.Dense(256, activation='relu'))
#model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.3))

model_bidirectional_LSTM.add(tf.keras.layers.Dense(128, activation='relu'))
model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM.add(tf.keras.layers.Dense(64, activation='relu'))
model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM.add(tf.keras.layers.Dense(32, activation='relu'))
model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM.add(tf.keras.layers.Dense(16, activation='relu'))
model_bidirectional_LSTM.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model_bidirectional_LSTM summary
model_bidirectional_LSTM.summary()


#Compile the model_bidirectional_LSTM
model_bidirectional_LSTM.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history_bi_lstm=model_bidirectional_LSTM.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=100,
            batch_size=16,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 256)               935936    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2980941 (11.37 MB)
Trainable params: 980261 (3.74 MB)
Non-trainable params: 2000680 (7.63 MB)
_________________________________________________________________
Epoch 1/100
21/21 [==============================] - 16s 216ms/step - loss: 1.8709 - accuracy: 0.1617 - val_loss: 1.5701 - val_accuracy: 0.6667
Epoch 2/100
21/21 [==============================] - 1s 66ms/step - loss: 1.8566 - accuracy: 0.1946 - val_loss: 1.3980 - val_accuracy: 0.7381
Epoch 3/100
21/21 [==============================] - 2s 78ms/step - loss: 1.7428 - accuracy: 0.2156 - val_loss: 1.3703 - val_accuracy: 0.6905
Epoch 4/100
21/21 [==============================] - 2s 96ms/step - loss: 1.7439 - accuracy: 0.2545 - val_loss: 1.4178 - val_accuracy: 0.0952
Epoch 5/100
21/21 [==============================] - 2s 74ms/step - loss: 1.5688 - accuracy: 0.2994 - val_loss: 1.4384 - val_accuracy: 0.0952
Epoch 6/100
21/21 [==============================] - 1s 57ms/step - loss: 1.5419 - accuracy: 0.2994 - val_loss: 1.3490 - val_accuracy: 0.1786
Epoch 7/100
21/21 [==============================] - 1s 58ms/step - loss: 1.4871 - accuracy: 0.3683 - val_loss: 1.3707 - val_accuracy: 0.0952
Epoch 8/100
21/21 [==============================] - 1s 52ms/step - loss: 1.3328 - accuracy: 0.4910 - val_loss: 1.3253 - val_accuracy: 0.3690
Epoch 9/100
21/21 [==============================] - 1s 41ms/step - loss: 1.4076 - accuracy: 0.4521 - val_loss: 1.3332 - val_accuracy: 0.6310
Epoch 10/100
21/21 [==============================] - 1s 40ms/step - loss: 1.3314 - accuracy: 0.4970 - val_loss: 1.2158 - val_accuracy: 0.7381
Epoch 11/100
21/21 [==============================] - 1s 61ms/step - loss: 1.2538 - accuracy: 0.5868 - val_loss: 1.2134 - val_accuracy: 0.7381
Epoch 12/100
21/21 [==============================] - 1s 51ms/step - loss: 1.2372 - accuracy: 0.6347 - val_loss: 1.1301 - val_accuracy: 0.7381
Epoch 13/100
21/21 [==============================] - 1s 45ms/step - loss: 1.1924 - accuracy: 0.6407 - val_loss: 1.1398 - val_accuracy: 0.7381
Epoch 14/100
21/21 [==============================] - 1s 71ms/step - loss: 1.1684 - accuracy: 0.6707 - val_loss: 1.1182 - val_accuracy: 0.7381
Epoch 15/100
21/21 [==============================] - 2s 111ms/step - loss: 1.1109 - accuracy: 0.6737 - val_loss: 1.0897 - val_accuracy: 0.7381
Epoch 16/100
21/21 [==============================] - 1s 61ms/step - loss: 1.1284 - accuracy: 0.6886 - val_loss: 1.0229 - val_accuracy: 0.7381
Epoch 17/100
21/21 [==============================] - 1s 43ms/step - loss: 1.0942 - accuracy: 0.6826 - val_loss: 0.9891 - val_accuracy: 0.7381
Epoch 18/100
21/21 [==============================] - 1s 41ms/step - loss: 1.0821 - accuracy: 0.7006 - val_loss: 0.9681 - val_accuracy: 0.7381
Epoch 19/100
21/21 [==============================] - 1s 46ms/step - loss: 1.0372 - accuracy: 0.7036 - val_loss: 0.9622 - val_accuracy: 0.7381
Epoch 20/100
21/21 [==============================] - 1s 37ms/step - loss: 1.0019 - accuracy: 0.7126 - val_loss: 0.9630 - val_accuracy: 0.7381
Epoch 21/100
21/21 [==============================] - 1s 43ms/step - loss: 1.0970 - accuracy: 0.7096 - val_loss: 0.9596 - val_accuracy: 0.7381
Epoch 22/100
21/21 [==============================] - 1s 38ms/step - loss: 1.0295 - accuracy: 0.7096 - val_loss: 0.9509 - val_accuracy: 0.7381
Epoch 23/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9806 - accuracy: 0.7395 - val_loss: 0.9504 - val_accuracy: 0.7381
Epoch 24/100
21/21 [==============================] - 1s 38ms/step - loss: 1.0136 - accuracy: 0.7305 - val_loss: 0.9427 - val_accuracy: 0.7381
Epoch 25/100
21/21 [==============================] - 1s 42ms/step - loss: 1.0244 - accuracy: 0.7275 - val_loss: 0.9416 - val_accuracy: 0.7381
Epoch 26/100
21/21 [==============================] - 1s 36ms/step - loss: 0.9975 - accuracy: 0.7335 - val_loss: 0.9411 - val_accuracy: 0.7381
Epoch 27/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9516 - accuracy: 0.7305 - val_loss: 0.9349 - val_accuracy: 0.7381
Epoch 28/100
21/21 [==============================] - 1s 48ms/step - loss: 0.9794 - accuracy: 0.7275 - val_loss: 0.9323 - val_accuracy: 0.7381
Epoch 29/100
21/21 [==============================] - 1s 56ms/step - loss: 0.9693 - accuracy: 0.7395 - val_loss: 0.9306 - val_accuracy: 0.7381
Epoch 30/100
21/21 [==============================] - 1s 57ms/step - loss: 1.0004 - accuracy: 0.7335 - val_loss: 0.9296 - val_accuracy: 0.7381
Epoch 31/100
21/21 [==============================] - 1s 58ms/step - loss: 0.9711 - accuracy: 0.7335 - val_loss: 0.9270 - val_accuracy: 0.7381
Epoch 32/100
21/21 [==============================] - 1s 43ms/step - loss: 1.0234 - accuracy: 0.7275 - val_loss: 0.9276 - val_accuracy: 0.7381
Epoch 33/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9543 - accuracy: 0.7395 - val_loss: 0.9258 - val_accuracy: 0.7381
Epoch 34/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9082 - accuracy: 0.7395 - val_loss: 0.9247 - val_accuracy: 0.7381
Epoch 35/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9725 - accuracy: 0.7395 - val_loss: 0.9239 - val_accuracy: 0.7381
Epoch 36/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9550 - accuracy: 0.7395 - val_loss: 0.9237 - val_accuracy: 0.7381
Epoch 37/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9800 - accuracy: 0.7365 - val_loss: 0.9255 - val_accuracy: 0.7381
Epoch 38/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9822 - accuracy: 0.7395 - val_loss: 0.9260 - val_accuracy: 0.7381
Epoch 39/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9761 - accuracy: 0.7365 - val_loss: 0.9238 - val_accuracy: 0.7381
Epoch 40/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9358 - accuracy: 0.7365 - val_loss: 0.9251 - val_accuracy: 0.7381
Epoch 41/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9449 - accuracy: 0.7365 - val_loss: 0.9243 - val_accuracy: 0.7381
Epoch 42/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9405 - accuracy: 0.7365 - val_loss: 0.9210 - val_accuracy: 0.7381
Epoch 43/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9705 - accuracy: 0.7395 - val_loss: 0.9205 - val_accuracy: 0.7381
Epoch 44/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9469 - accuracy: 0.7395 - val_loss: 0.9191 - val_accuracy: 0.7381
Epoch 45/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9342 - accuracy: 0.7395 - val_loss: 0.9186 - val_accuracy: 0.7381
Epoch 46/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9855 - accuracy: 0.7395 - val_loss: 0.9189 - val_accuracy: 0.7381
Epoch 47/100
21/21 [==============================] - 1s 41ms/step - loss: 0.9427 - accuracy: 0.7395 - val_loss: 0.9190 - val_accuracy: 0.7381
Epoch 48/100
21/21 [==============================] - 1s 36ms/step - loss: 0.9128 - accuracy: 0.7395 - val_loss: 0.9188 - val_accuracy: 0.7381
Epoch 49/100
21/21 [==============================] - 1s 43ms/step - loss: 0.9201 - accuracy: 0.7395 - val_loss: 0.9186 - val_accuracy: 0.7381
Epoch 50/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9391 - accuracy: 0.7395 - val_loss: 0.9183 - val_accuracy: 0.7381
Epoch 51/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9612 - accuracy: 0.7365 - val_loss: 0.9185 - val_accuracy: 0.7381
Epoch 52/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9527 - accuracy: 0.7365 - val_loss: 0.9182 - val_accuracy: 0.7381
Epoch 53/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9298 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381
Epoch 54/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9301 - accuracy: 0.7395 - val_loss: 0.9179 - val_accuracy: 0.7381
Epoch 55/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9598 - accuracy: 0.7365 - val_loss: 0.9179 - val_accuracy: 0.7381
Epoch 56/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9430 - accuracy: 0.7395 - val_loss: 0.9177 - val_accuracy: 0.7381
Epoch 57/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9751 - accuracy: 0.7395 - val_loss: 0.9191 - val_accuracy: 0.7381
Epoch 58/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9471 - accuracy: 0.7395 - val_loss: 0.9189 - val_accuracy: 0.7381
Epoch 59/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9278 - accuracy: 0.7395 - val_loss: 0.9188 - val_accuracy: 0.7381
Epoch 60/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9498 - accuracy: 0.7395 - val_loss: 0.9195 - val_accuracy: 0.7381
Epoch 61/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9314 - accuracy: 0.7395 - val_loss: 0.9190 - val_accuracy: 0.7381
Epoch 62/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9111 - accuracy: 0.7395 - val_loss: 0.9184 - val_accuracy: 0.7381
Epoch 63/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9154 - accuracy: 0.7395 - val_loss: 0.9177 - val_accuracy: 0.7381
Epoch 64/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9292 - accuracy: 0.7395 - val_loss: 0.9181 - val_accuracy: 0.7381
Epoch 65/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9259 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381
Epoch 66/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9126 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381
Epoch 67/100
21/21 [==============================] - 1s 39ms/step - loss: 0.9299 - accuracy: 0.7395 - val_loss: 0.9178 - val_accuracy: 0.7381
Epoch 68/100
21/21 [==============================] - 1s 37ms/step - loss: 0.9369 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381
Epoch 69/100
21/21 [==============================] - 1s 36ms/step - loss: 0.9323 - accuracy: 0.7395 - val_loss: 0.9173 - val_accuracy: 0.7381
Epoch 70/100
21/21 [==============================] - 1s 41ms/step - loss: 0.9272 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
Epoch 71/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9205 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381
Epoch 72/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9302 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381
Epoch 73/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9212 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381
Epoch 74/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9113 - accuracy: 0.7395 - val_loss: 0.9171 - val_accuracy: 0.7381
Epoch 75/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9264 - accuracy: 0.7395 - val_loss: 0.9171 - val_accuracy: 0.7381
Epoch 76/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9252 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
Epoch 77/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9405 - accuracy: 0.7395 - val_loss: 0.9177 - val_accuracy: 0.7381
Epoch 78/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9280 - accuracy: 0.7395 - val_loss: 0.9182 - val_accuracy: 0.7381
Epoch 79/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9145 - accuracy: 0.7395 - val_loss: 0.9185 - val_accuracy: 0.7381
Epoch 80/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9133 - accuracy: 0.7395 - val_loss: 0.9186 - val_accuracy: 0.7381
Epoch 81/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9177 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
Epoch 82/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9094 - accuracy: 0.7395 - val_loss: 0.9170 - val_accuracy: 0.7381
Epoch 83/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9145 - accuracy: 0.7395 - val_loss: 0.9168 - val_accuracy: 0.7381
Epoch 84/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9271 - accuracy: 0.7395 - val_loss: 0.9169 - val_accuracy: 0.7381
Epoch 85/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9320 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
Epoch 86/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9175 - accuracy: 0.7395 - val_loss: 0.9169 - val_accuracy: 0.7381
Epoch 87/100
21/21 [==============================] - 1s 37ms/step - loss: 0.9254 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381
Epoch 88/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9020 - accuracy: 0.7395 - val_loss: 0.9168 - val_accuracy: 0.7381
Epoch 89/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9271 - accuracy: 0.7395 - val_loss: 0.9170 - val_accuracy: 0.7381
Epoch 90/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9400 - accuracy: 0.7395 - val_loss: 0.9167 - val_accuracy: 0.7381
Epoch 91/100
21/21 [==============================] - 1s 36ms/step - loss: 0.9285 - accuracy: 0.7395 - val_loss: 0.9184 - val_accuracy: 0.7381
Epoch 92/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9170 - accuracy: 0.7395 - val_loss: 0.9170 - val_accuracy: 0.7381
Epoch 93/100
21/21 [==============================] - 1s 28ms/step - loss: 0.8964 - accuracy: 0.7395 - val_loss: 0.9185 - val_accuracy: 0.7381
Epoch 94/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9184 - accuracy: 0.7395 - val_loss: 0.9187 - val_accuracy: 0.7381
Epoch 95/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9099 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381
Epoch 96/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9346 - accuracy: 0.7395 - val_loss: 0.9183 - val_accuracy: 0.7381
Epoch 97/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9106 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381
Epoch 98/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9124 - accuracy: 0.7395 - val_loss: 0.9169 - val_accuracy: 0.7381
Epoch 99/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9374 - accuracy: 0.7395 - val_loss: 0.9171 - val_accuracy: 0.7381
Epoch 100/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9136 - accuracy: 0.7395 - val_loss: 0.9173 - val_accuracy: 0.7381
In [ ]:
result=function_model("Bi-directional_LSTM",model_bidirectional_LSTM, history_bi_lstm, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM
3/3 [==============================] - 1s 17ms/step
Train Accuracy score:  0.7395209670066833
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

trying bi-directional LSTM with reduce LR and early stopping¶

In [ ]:
#preparing model5

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model5 = tf.keras.Sequential()

model5.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model5
                  trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model5.add(tf.keras.layers.Dropout(0.3))

model5.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(256), merge_mode='sum'))
#model5.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model5.add(tf.keras.layers.Dropout(0.3))


#model5.add(tf.keras.layers.Dense(256, activation='relu'))
#model5.add(tf.keras.layers.Dropout(0.3))

model5.add(tf.keras.layers.Dense(128, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(64, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(32, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(16, activation='relu'))
model5.add(tf.keras.layers.Dropout(0.5))
model5.add(tf.keras.layers.BatchNormalization())

model5.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model5 summary
model5.summary()


#Compile the model5
model5.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the EarlyStopping callback
early_stopping = EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True, min_delta=1E-3)


# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history5=model5.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=100,
            batch_size=16,
            callbacks=[early_stopping, reduce_lr],
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 256)               935936    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2980941 (11.37 MB)
Trainable params: 980261 (3.74 MB)
Non-trainable params: 2000680 (7.63 MB)
_________________________________________________________________
Epoch 1/100
21/21 [==============================] - 7s 81ms/step - loss: 1.9388 - accuracy: 0.1796 - val_loss: 1.5670 - val_accuracy: 0.1071 - lr: 0.0010
Epoch 2/100
21/21 [==============================] - 1s 28ms/step - loss: 1.8812 - accuracy: 0.2156 - val_loss: 1.5473 - val_accuracy: 0.1429 - lr: 0.0010
Epoch 3/100
21/21 [==============================] - 1s 29ms/step - loss: 1.7566 - accuracy: 0.2156 - val_loss: 1.5804 - val_accuracy: 0.0714 - lr: 0.0010
Epoch 4/100
21/21 [==============================] - 1s 37ms/step - loss: 1.6839 - accuracy: 0.2575 - val_loss: 1.5518 - val_accuracy: 0.5000 - lr: 0.0010
Epoch 5/100
21/21 [==============================] - 1s 35ms/step - loss: 1.5811 - accuracy: 0.3084 - val_loss: 1.3649 - val_accuracy: 0.7262 - lr: 0.0010
Epoch 6/100
21/21 [==============================] - 1s 40ms/step - loss: 1.5444 - accuracy: 0.3683 - val_loss: 1.4324 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 7/100
21/21 [==============================] - 1s 41ms/step - loss: 1.4955 - accuracy: 0.3503 - val_loss: 1.4371 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 8/100
21/21 [==============================] - 1s 32ms/step - loss: 1.4125 - accuracy: 0.4491 - val_loss: 1.2773 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 9/100
21/21 [==============================] - 1s 27ms/step - loss: 1.3697 - accuracy: 0.4850 - val_loss: 1.2830 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 10/100
21/21 [==============================] - 1s 27ms/step - loss: 1.3804 - accuracy: 0.5120 - val_loss: 1.2820 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 11/100
21/21 [==============================] - 1s 28ms/step - loss: 1.2660 - accuracy: 0.5569 - val_loss: 1.2075 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 12/100
21/21 [==============================] - 1s 29ms/step - loss: 1.2375 - accuracy: 0.6048 - val_loss: 1.1650 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 13/100
21/21 [==============================] - 1s 29ms/step - loss: 1.2319 - accuracy: 0.6228 - val_loss: 1.1564 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 14/100
21/21 [==============================] - 1s 28ms/step - loss: 1.1613 - accuracy: 0.6437 - val_loss: 1.1287 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 15/100
21/21 [==============================] - 1s 33ms/step - loss: 1.1635 - accuracy: 0.6766 - val_loss: 1.0709 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 16/100
21/21 [==============================] - 1s 28ms/step - loss: 1.0744 - accuracy: 0.7006 - val_loss: 1.0535 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 17/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0999 - accuracy: 0.6976 - val_loss: 1.0346 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 18/100
21/21 [==============================] - 1s 30ms/step - loss: 1.0823 - accuracy: 0.6976 - val_loss: 1.0077 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 19/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0644 - accuracy: 0.7066 - val_loss: 1.0052 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 20/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0384 - accuracy: 0.7156 - val_loss: 0.9756 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 21/100
21/21 [==============================] - 1s 28ms/step - loss: 1.0091 - accuracy: 0.7275 - val_loss: 0.9626 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 22/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0246 - accuracy: 0.7395 - val_loss: 0.9502 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 23/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0133 - accuracy: 0.7156 - val_loss: 0.9451 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 24/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9730 - accuracy: 0.7335 - val_loss: 0.9348 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 25/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9878 - accuracy: 0.7335 - val_loss: 0.9331 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 26/100
21/21 [==============================] - 1s 40ms/step - loss: 1.0327 - accuracy: 0.7335 - val_loss: 0.9340 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 27/100
21/21 [==============================] - 1s 42ms/step - loss: 1.0355 - accuracy: 0.7365 - val_loss: 0.9318 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 28/100
21/21 [==============================] - 1s 36ms/step - loss: 1.0168 - accuracy: 0.7335 - val_loss: 0.9268 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 29/100
21/21 [==============================] - 1s 29ms/step - loss: 1.0210 - accuracy: 0.7365 - val_loss: 0.9269 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 30/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9699 - accuracy: 0.7365 - val_loss: 0.9274 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 31/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9956 - accuracy: 0.7365 - val_loss: 0.9262 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 32/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9544 - accuracy: 0.7335 - val_loss: 0.9234 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 33/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9779 - accuracy: 0.7395 - val_loss: 0.9236 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 34/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9382 - accuracy: 0.7395 - val_loss: 0.9207 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 35/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9676 - accuracy: 0.7365 - val_loss: 0.9252 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 36/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9644 - accuracy: 0.7365 - val_loss: 0.9229 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 37/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9724 - accuracy: 0.7395 - val_loss: 0.9206 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 38/100
21/21 [==============================] - 1s 32ms/step - loss: 0.9580 - accuracy: 0.7365 - val_loss: 0.9213 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 39/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9818 - accuracy: 0.7365 - val_loss: 0.9191 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 40/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9306 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 41/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9459 - accuracy: 0.7395 - val_loss: 0.9176 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 42/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9570 - accuracy: 0.7395 - val_loss: 0.9178 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 43/100
21/21 [==============================] - 1s 28ms/step - loss: 0.9733 - accuracy: 0.7395 - val_loss: 0.9170 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 44/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9685 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 45/100
21/21 [==============================] - 1s 37ms/step - loss: 0.9438 - accuracy: 0.7395 - val_loss: 0.9179 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 46/100
21/21 [==============================] - 1s 36ms/step - loss: 0.9468 - accuracy: 0.7395 - val_loss: 0.9179 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 47/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9280 - accuracy: 0.7395 - val_loss: 0.9175 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 48/100
21/21 [==============================] - ETA: 0s - loss: 0.9332 - accuracy: 0.7395
Epoch 48: ReduceLROnPlateau reducing learning rate to 0.00010000000474974513.
21/21 [==============================] - 1s 43ms/step - loss: 0.9332 - accuracy: 0.7395 - val_loss: 0.9174 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 49/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9301 - accuracy: 0.7395 - val_loss: 0.9171 - val_accuracy: 0.7381 - lr: 1.0000e-04
Epoch 50/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9127 - accuracy: 0.7395 - val_loss: 0.9168 - val_accuracy: 0.7381 - lr: 1.0000e-04
In [ ]:
result=function_model("Bi-directional_LSTM_early_stop_reducedLR",model5, history5, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM_early_stop_reducedLR
3/3 [==============================] - 1s 17ms/step
Train Accuracy score:  0.7395209670066833
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image

trying bi-directional LSTM with reduce LR and no embedding weight¶

In [ ]:
#preparing model_bidirectional_LSTM_noembweight

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model_bidirectional_LSTM_noembweight = tf.keras.Sequential()

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  #weights=[embedding_matrix], #Embeddings taken from pre-trained model_bidirectional_LSTM_noembweight
                  #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.3))

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(256), merge_mode='sum'))
#model_bidirectional_LSTM_noembweight.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.3))


#model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(256, activation='relu'))
#model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.3))

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(128, activation='relu'))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(64, activation='relu'))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(32, activation='relu'))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(16, activation='relu'))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dropout(0.5))
model_bidirectional_LSTM_noembweight.add(tf.keras.layers.BatchNormalization())

model_bidirectional_LSTM_noembweight.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model_bidirectional_LSTM_noembweight summary
model_bidirectional_LSTM_noembweight.summary()


#Compile the model_bidirectional_LSTM_noembweight
model_bidirectional_LSTM_noembweight.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.01, patience=8, min_lr=1e-8, verbose=1)

history_bi_lstm__noembweight=model_bidirectional_LSTM_noembweight.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=100,
            batch_size=16,
            callbacks=reduce_lr,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 256)               935936    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2980941 (11.37 MB)
Trainable params: 2980461 (11.37 MB)
Non-trainable params: 480 (1.88 KB)
_________________________________________________________________
Epoch 1/100
21/21 [==============================] - 19s 345ms/step - loss: 1.9779 - accuracy: 0.2066 - val_loss: 1.5094 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 2/100
21/21 [==============================] - 4s 167ms/step - loss: 1.8124 - accuracy: 0.2066 - val_loss: 1.4228 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 3/100
21/21 [==============================] - 4s 192ms/step - loss: 1.7699 - accuracy: 0.3054 - val_loss: 1.3561 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 4/100
21/21 [==============================] - 5s 218ms/step - loss: 1.7092 - accuracy: 0.3413 - val_loss: 1.3596 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 5/100
21/21 [==============================] - 5s 225ms/step - loss: 1.6746 - accuracy: 0.3353 - val_loss: 1.2457 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 6/100
21/21 [==============================] - 3s 137ms/step - loss: 1.6203 - accuracy: 0.3383 - val_loss: 1.2030 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 7/100
21/21 [==============================] - 3s 130ms/step - loss: 1.5507 - accuracy: 0.4222 - val_loss: 1.1984 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 8/100
21/21 [==============================] - 2s 94ms/step - loss: 1.4465 - accuracy: 0.4192 - val_loss: 1.1250 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 9/100
21/21 [==============================] - 3s 114ms/step - loss: 1.4292 - accuracy: 0.4671 - val_loss: 1.1539 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 10/100
21/21 [==============================] - 2s 110ms/step - loss: 1.3472 - accuracy: 0.5299 - val_loss: 1.0696 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 11/100
21/21 [==============================] - 1s 69ms/step - loss: 1.2972 - accuracy: 0.5539 - val_loss: 1.0554 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 12/100
21/21 [==============================] - 2s 90ms/step - loss: 1.2600 - accuracy: 0.5778 - val_loss: 1.0435 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 13/100
21/21 [==============================] - 1s 61ms/step - loss: 1.2016 - accuracy: 0.5958 - val_loss: 0.9954 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 14/100
21/21 [==============================] - 2s 97ms/step - loss: 1.1894 - accuracy: 0.6108 - val_loss: 0.9801 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 15/100
21/21 [==============================] - 1s 59ms/step - loss: 1.1268 - accuracy: 0.6437 - val_loss: 0.9707 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 16/100
21/21 [==============================] - 2s 105ms/step - loss: 1.1379 - accuracy: 0.6437 - val_loss: 0.9682 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 17/100
21/21 [==============================] - 3s 147ms/step - loss: 1.0946 - accuracy: 0.6647 - val_loss: 0.9590 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 18/100
21/21 [==============================] - 1s 54ms/step - loss: 1.0509 - accuracy: 0.6976 - val_loss: 0.9428 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 19/100
21/21 [==============================] - 1s 39ms/step - loss: 1.0742 - accuracy: 0.6976 - val_loss: 0.9330 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 20/100
21/21 [==============================] - 1s 43ms/step - loss: 1.0723 - accuracy: 0.7036 - val_loss: 0.9292 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 21/100
21/21 [==============================] - 1s 39ms/step - loss: 0.9903 - accuracy: 0.7186 - val_loss: 0.9225 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 22/100
21/21 [==============================] - 1s 38ms/step - loss: 1.0520 - accuracy: 0.7216 - val_loss: 0.9233 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 23/100
21/21 [==============================] - 1s 48ms/step - loss: 1.0239 - accuracy: 0.7216 - val_loss: 0.9222 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 24/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9909 - accuracy: 0.7305 - val_loss: 0.9200 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 25/100
21/21 [==============================] - 1s 41ms/step - loss: 1.0521 - accuracy: 0.7246 - val_loss: 0.9180 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 26/100
21/21 [==============================] - 1s 36ms/step - loss: 1.0194 - accuracy: 0.7156 - val_loss: 0.9167 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 27/100
21/21 [==============================] - 1s 41ms/step - loss: 1.0413 - accuracy: 0.7305 - val_loss: 0.9179 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 28/100
21/21 [==============================] - 1s 30ms/step - loss: 1.0125 - accuracy: 0.7246 - val_loss: 0.9175 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 29/100
21/21 [==============================] - 1s 51ms/step - loss: 1.0083 - accuracy: 0.7305 - val_loss: 0.9177 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 30/100
21/21 [==============================] - 1s 50ms/step - loss: 1.0029 - accuracy: 0.7425 - val_loss: 0.9159 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 31/100
21/21 [==============================] - 1s 52ms/step - loss: 1.0156 - accuracy: 0.7275 - val_loss: 0.9153 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 32/100
21/21 [==============================] - 1s 51ms/step - loss: 0.9863 - accuracy: 0.7305 - val_loss: 0.9154 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 33/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9673 - accuracy: 0.7365 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 34/100
21/21 [==============================] - 1s 35ms/step - loss: 1.0023 - accuracy: 0.7335 - val_loss: 0.9152 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 35/100
21/21 [==============================] - 1s 45ms/step - loss: 0.9510 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 36/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9480 - accuracy: 0.7395 - val_loss: 0.9158 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 37/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9858 - accuracy: 0.7305 - val_loss: 0.9146 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 38/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9890 - accuracy: 0.7365 - val_loss: 0.9146 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 39/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9549 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 40/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9638 - accuracy: 0.7365 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 41/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9698 - accuracy: 0.7365 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 42/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9463 - accuracy: 0.7365 - val_loss: 0.9147 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 43/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9370 - accuracy: 0.7395 - val_loss: 0.9153 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 44/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9381 - accuracy: 0.7395 - val_loss: 0.9143 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 45/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9512 - accuracy: 0.7395 - val_loss: 0.9144 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 46/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9411 - accuracy: 0.7395 - val_loss: 0.9144 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 47/100
21/21 [==============================] - 1s 41ms/step - loss: 0.9502 - accuracy: 0.7395 - val_loss: 0.9144 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 48/100
21/21 [==============================] - 1s 39ms/step - loss: 0.9617 - accuracy: 0.7395 - val_loss: 0.9146 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 49/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9491 - accuracy: 0.7395 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 50/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9439 - accuracy: 0.7365 - val_loss: 0.9153 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 51/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9459 - accuracy: 0.7395 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 52/100
21/21 [==============================] - ETA: 0s - loss: 0.9288 - accuracy: 0.7395
Epoch 52: ReduceLROnPlateau reducing learning rate to 1.0000000474974514e-05.
21/21 [==============================] - 1s 29ms/step - loss: 0.9288 - accuracy: 0.7395 - val_loss: 0.9154 - val_accuracy: 0.7381 - lr: 0.0010
Epoch 53/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9209 - accuracy: 0.7395 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 54/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9513 - accuracy: 0.7395 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 55/100
21/21 [==============================] - 1s 39ms/step - loss: 0.9248 - accuracy: 0.7395 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 56/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9302 - accuracy: 0.7365 - val_loss: 0.9151 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 57/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9572 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 58/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9242 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 59/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9261 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 60/100
21/21 [==============================] - ETA: 0s - loss: 0.9263 - accuracy: 0.7395
Epoch 60: ReduceLROnPlateau reducing learning rate to 1.0000000656873453e-07.
21/21 [==============================] - 1s 41ms/step - loss: 0.9263 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-05
Epoch 61/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9468 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 62/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9495 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 63/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9488 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 64/100
21/21 [==============================] - 1s 53ms/step - loss: 0.9342 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 65/100
21/21 [==============================] - 1s 48ms/step - loss: 0.9509 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 66/100
21/21 [==============================] - 1s 43ms/step - loss: 0.9200 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 67/100
21/21 [==============================] - 1s 31ms/step - loss: 0.9435 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 68/100
21/21 [==============================] - ETA: 0s - loss: 0.9309 - accuracy: 0.7395
Epoch 68: ReduceLROnPlateau reducing learning rate to 1e-08.
21/21 [==============================] - 1s 34ms/step - loss: 0.9309 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-07
Epoch 69/100
21/21 [==============================] - 1s 49ms/step - loss: 0.9353 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 70/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9264 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 71/100
21/21 [==============================] - 1s 34ms/step - loss: 0.9467 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 72/100
21/21 [==============================] - 1s 35ms/step - loss: 0.9347 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 73/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9443 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 74/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9433 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 75/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9651 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 76/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9456 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 77/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9359 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 78/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9375 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 79/100
21/21 [==============================] - 1s 37ms/step - loss: 0.9318 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 80/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9519 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 81/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9298 - accuracy: 0.7365 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 82/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9405 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 83/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9356 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 84/100
21/21 [==============================] - 1s 44ms/step - loss: 0.9417 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 85/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9344 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 86/100
21/21 [==============================] - 1s 40ms/step - loss: 0.9615 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 87/100
21/21 [==============================] - 1s 45ms/step - loss: 0.9470 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 88/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9386 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 89/100
21/21 [==============================] - 1s 33ms/step - loss: 0.9208 - accuracy: 0.7395 - val_loss: 0.9150 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 90/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9285 - accuracy: 0.7365 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 91/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9288 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 92/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9509 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 93/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9705 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 94/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9272 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 95/100
21/21 [==============================] - 1s 29ms/step - loss: 0.9318 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 96/100
21/21 [==============================] - 1s 38ms/step - loss: 0.9436 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 97/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9488 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 98/100
21/21 [==============================] - 1s 30ms/step - loss: 0.9475 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 99/100
21/21 [==============================] - 1s 39ms/step - loss: 0.9656 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
Epoch 100/100
21/21 [==============================] - 1s 42ms/step - loss: 0.9315 - accuracy: 0.7395 - val_loss: 0.9149 - val_accuracy: 0.7381 - lr: 1.0000e-08
In [ ]:
result=function_model("Bi-directional_LSTM_ea_reducedLR_no_embeeding_weight",model_bidirectional_LSTM_noembweight, history_bi_lstm__noembweight, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM_ea_reducedLR_no_embeeding_weight
3/3 [==============================] - 1s 19ms/step
Train Accuracy score:  0.7395209670066833
Test Accuracy score:  0.738095223903656
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      1.00      0.85        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.74        84
   macro avg       0.15      0.20      0.17        84
weighted avg       0.54      0.74      0.63        84

No description has been provided for this image
In [ ]:
lstm_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 LSTM_128 0.93 0.58 0.57 0.58 0.57
1 LSTM_128 0.99 0.60 0.57 0.60 0.58
2 LSTM_256 1.00 0.63 0.55 0.63 0.59
3 LSTM_128_droupout 0.98 0.58 0.53 0.58 0.56
4 LSTM_256_droupout 0.99 0.55 0.52 0.55 0.53
5 LSTM_256_droupout_dense 0.82 0.51 0.55 0.51 0.53
6 LSTM_256_droupout_dense_dropout 0.81 0.68 0.56 0.68 0.61
7 LSTM_256_droupout_dense_dropout_BN 0.74 0.74 0.54 0.74 0.63
8 stackedLSTM 0.74 0.74 0.54 0.74 0.63
9 Bi-directional_LSTM 0.74 0.74 0.54 0.74 0.63
10 Bi-directional_LSTM_early_stop_reducedLR 0.74 0.74 0.54 0.74 0.63
11 Bi-directional_LSTM_ea_reducedLR_no_embeeding_... 0.74 0.74 0.54 0.74 0.63

Lets try SMOTE¶

In [ ]:
X_train.shape, X_test.shape, y_train.shape, y_test.shape
Out[ ]:
((334, 215), (84, 215), (334, 5), (84, 5))
In [ ]:
smote=SMOTE(random_state=42)
X_train_smote,y_train_smote= smote.fit_resample(X_train, y_train)
In [ ]:
X_train_smote.shape, X_test.shape, y_train_smote.shape, y_test.shape
Out[ ]:
((1235, 215), (84, 215), (1235, 5), (84, 5))
In [ ]:
#checking distribution
np.unique(np.argmax(y_train_smote, axis=1), return_counts=True)
Out[ ]:
(array([0, 1, 2, 3, 4]), array([247, 247, 247, 247, 247]))
In [ ]:
#lets check ANN Smote

#preparing model2

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model2 = tf.keras.Sequential()

model2.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                                    embedding_vector_length, #Embedding size
                                    weights=[embedding_matrix], #Embeddings taken from pre-trained model2
                                    trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                                    input_length=max_review_length) #Number of words in each review
          )

#Flatten the data as we will use Dense layers
model2.add(tf.keras.layers.Flatten())

model2.add(tf.keras.layers.Dense(256, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(128, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(64, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.5))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(32, activation='relu',kernel_initializer='he_uniform' ))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(16, activation='relu', kernel_initializer='he_uniform'))
model2.add(tf.keras.layers.Dropout(0.3))
model2.add(tf.keras.layers.BatchNormalization())

model2.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model2 summary
model2.summary()


#Compile the model2
model2.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the EarlyStopping callback
#early_stopping = EarlyStopping(monitor='val_loss', patience=20, restore_best_weights=True, min_delta=1E-3)


# Define the ReduceLROnPlateau callback
#reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history2=model2.fit(X_train_smote,y_train_smote, validation_data=(X_test,y_test),
                   epochs=100,
                   batch_size=8,
                   #callbacks=[reduce_lr],
                   verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 flatten (Flatten)           (None, 43000)             0         
                                                                 
 dense (Dense)               (None, 256)               11008256  
                                                                 
 dropout (Dropout)           (None, 256)               0         
                                                                 
 batch_normalization (Batch  (None, 256)               1024      
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 128)               32896     
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization_1 (Bat  (None, 128)               512       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_4 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_5 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 13054285 (49.80 MB)
Trainable params: 11053093 (42.16 MB)
Non-trainable params: 2001192 (7.63 MB)
_________________________________________________________________
Epoch 1/100
155/155 [==============================] - 7s 12ms/step - loss: 2.1576 - accuracy: 0.1628 - val_loss: 1.6009 - val_accuracy: 0.1905
Epoch 2/100
155/155 [==============================] - 2s 10ms/step - loss: 1.9201 - accuracy: 0.1943 - val_loss: 1.8263 - val_accuracy: 0.0595
Epoch 3/100
155/155 [==============================] - 2s 11ms/step - loss: 1.8095 - accuracy: 0.2138 - val_loss: 1.8639 - val_accuracy: 0.0952
Epoch 4/100
155/155 [==============================] - 2s 11ms/step - loss: 1.7781 - accuracy: 0.1870 - val_loss: 1.7592 - val_accuracy: 0.1190
Epoch 5/100
155/155 [==============================] - 2s 11ms/step - loss: 1.7281 - accuracy: 0.2024 - val_loss: 1.7104 - val_accuracy: 0.1071
Epoch 6/100
155/155 [==============================] - 2s 11ms/step - loss: 1.7047 - accuracy: 0.1943 - val_loss: 1.6818 - val_accuracy: 0.1667
Epoch 7/100
155/155 [==============================] - 2s 14ms/step - loss: 1.6604 - accuracy: 0.2057 - val_loss: 1.6702 - val_accuracy: 0.1190
Epoch 8/100
155/155 [==============================] - 2s 12ms/step - loss: 1.6667 - accuracy: 0.1903 - val_loss: 1.7088 - val_accuracy: 0.1071
Epoch 9/100
155/155 [==============================] - 2s 11ms/step - loss: 1.6378 - accuracy: 0.2202 - val_loss: 1.7044 - val_accuracy: 0.0952
Epoch 10/100
155/155 [==============================] - 2s 10ms/step - loss: 1.6437 - accuracy: 0.2065 - val_loss: 1.6995 - val_accuracy: 0.0952
Epoch 11/100
155/155 [==============================] - 2s 11ms/step - loss: 1.6375 - accuracy: 0.2154 - val_loss: 1.6726 - val_accuracy: 0.1190
Epoch 12/100
155/155 [==============================] - 2s 11ms/step - loss: 1.6335 - accuracy: 0.2089 - val_loss: 1.6686 - val_accuracy: 0.1071
Epoch 13/100
155/155 [==============================] - 2s 11ms/step - loss: 1.6236 - accuracy: 0.2154 - val_loss: 1.6534 - val_accuracy: 0.1190
Epoch 14/100
155/155 [==============================] - 2s 13ms/step - loss: 1.6244 - accuracy: 0.2024 - val_loss: 1.6485 - val_accuracy: 0.0952
Epoch 15/100
155/155 [==============================] - 2s 15ms/step - loss: 1.6054 - accuracy: 0.2421 - val_loss: 1.6635 - val_accuracy: 0.0833
Epoch 16/100
155/155 [==============================] - 2s 10ms/step - loss: 1.6098 - accuracy: 0.2275 - val_loss: 1.6453 - val_accuracy: 0.0952
Epoch 17/100
155/155 [==============================] - 2s 10ms/step - loss: 1.6101 - accuracy: 0.2178 - val_loss: 1.6282 - val_accuracy: 0.0952
Epoch 18/100
155/155 [==============================] - 2s 10ms/step - loss: 1.6002 - accuracy: 0.2275 - val_loss: 1.6274 - val_accuracy: 0.0833
Epoch 19/100
155/155 [==============================] - 2s 11ms/step - loss: 1.6052 - accuracy: 0.2364 - val_loss: 1.6135 - val_accuracy: 0.0833
Epoch 20/100
155/155 [==============================] - 2s 10ms/step - loss: 1.5976 - accuracy: 0.2348 - val_loss: 1.5896 - val_accuracy: 0.0714
Epoch 21/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5955 - accuracy: 0.2308 - val_loss: 1.5786 - val_accuracy: 0.0714
Epoch 22/100
155/155 [==============================] - 2s 14ms/step - loss: 1.5853 - accuracy: 0.2551 - val_loss: 1.5709 - val_accuracy: 0.0952
Epoch 23/100
155/155 [==============================] - 2s 12ms/step - loss: 1.5791 - accuracy: 0.2567 - val_loss: 1.5626 - val_accuracy: 0.0714
Epoch 24/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5739 - accuracy: 0.2640 - val_loss: 1.5415 - val_accuracy: 0.1190
Epoch 25/100
155/155 [==============================] - 2s 10ms/step - loss: 1.5833 - accuracy: 0.2381 - val_loss: 1.5110 - val_accuracy: 0.1190
Epoch 26/100
155/155 [==============================] - 2s 10ms/step - loss: 1.5689 - accuracy: 0.2745 - val_loss: 1.5324 - val_accuracy: 0.0833
Epoch 27/100
155/155 [==============================] - 2s 10ms/step - loss: 1.5398 - accuracy: 0.3182 - val_loss: 1.5065 - val_accuracy: 0.0952
Epoch 28/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5513 - accuracy: 0.2769 - val_loss: 1.5041 - val_accuracy: 0.0952
Epoch 29/100
155/155 [==============================] - 2s 12ms/step - loss: 1.5390 - accuracy: 0.2858 - val_loss: 1.4819 - val_accuracy: 0.0952
Epoch 30/100
155/155 [==============================] - 2s 15ms/step - loss: 1.5475 - accuracy: 0.2794 - val_loss: 1.4746 - val_accuracy: 0.1071
Epoch 31/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5154 - accuracy: 0.3117 - val_loss: 1.4796 - val_accuracy: 0.0952
Epoch 32/100
155/155 [==============================] - 2s 11ms/step - loss: 1.4996 - accuracy: 0.3166 - val_loss: 1.4421 - val_accuracy: 0.1548
Epoch 33/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5113 - accuracy: 0.3045 - val_loss: 1.4469 - val_accuracy: 0.0952
Epoch 34/100
155/155 [==============================] - 2s 11ms/step - loss: 1.5064 - accuracy: 0.3150 - val_loss: 1.4199 - val_accuracy: 0.1190
Epoch 35/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4943 - accuracy: 0.3190 - val_loss: 1.4351 - val_accuracy: 0.1071
Epoch 36/100
155/155 [==============================] - 2s 11ms/step - loss: 1.4689 - accuracy: 0.3417 - val_loss: 1.4651 - val_accuracy: 0.1071
Epoch 37/100
155/155 [==============================] - 2s 15ms/step - loss: 1.4925 - accuracy: 0.3166 - val_loss: 1.4544 - val_accuracy: 0.0952
Epoch 38/100
155/155 [==============================] - 2s 13ms/step - loss: 1.4652 - accuracy: 0.3336 - val_loss: 1.4417 - val_accuracy: 0.0952
Epoch 39/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4965 - accuracy: 0.2988 - val_loss: 1.4493 - val_accuracy: 0.0952
Epoch 40/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4533 - accuracy: 0.3409 - val_loss: 1.4284 - val_accuracy: 0.0952
Epoch 41/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4514 - accuracy: 0.3312 - val_loss: 1.3907 - val_accuracy: 0.6786
Epoch 42/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4401 - accuracy: 0.3393 - val_loss: 1.4104 - val_accuracy: 0.1429
Epoch 43/100
155/155 [==============================] - 2s 11ms/step - loss: 1.4402 - accuracy: 0.3425 - val_loss: 1.4253 - val_accuracy: 0.0952
Epoch 44/100
155/155 [==============================] - 2s 12ms/step - loss: 1.4138 - accuracy: 0.3676 - val_loss: 1.3987 - val_accuracy: 0.0952
Epoch 45/100
155/155 [==============================] - 2s 15ms/step - loss: 1.4008 - accuracy: 0.3676 - val_loss: 1.3880 - val_accuracy: 0.5357
Epoch 46/100
155/155 [==============================] - 2s 11ms/step - loss: 1.4121 - accuracy: 0.3611 - val_loss: 1.3560 - val_accuracy: 0.7143
Epoch 47/100
155/155 [==============================] - 2s 11ms/step - loss: 1.4245 - accuracy: 0.3482 - val_loss: 1.3501 - val_accuracy: 0.7143
Epoch 48/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4134 - accuracy: 0.3684 - val_loss: 1.3666 - val_accuracy: 0.7143
Epoch 49/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3937 - accuracy: 0.3611 - val_loss: 1.3139 - val_accuracy: 0.7143
Epoch 50/100
155/155 [==============================] - 2s 10ms/step - loss: 1.4010 - accuracy: 0.3660 - val_loss: 1.3166 - val_accuracy: 0.7024
Epoch 51/100
155/155 [==============================] - 2s 10ms/step - loss: 1.3810 - accuracy: 0.3773 - val_loss: 1.2867 - val_accuracy: 0.7143
Epoch 52/100
155/155 [==============================] - 2s 14ms/step - loss: 1.3894 - accuracy: 0.3652 - val_loss: 1.3032 - val_accuracy: 0.7143
Epoch 53/100
155/155 [==============================] - 2s 14ms/step - loss: 1.3649 - accuracy: 0.3757 - val_loss: 1.3334 - val_accuracy: 0.5595
Epoch 54/100
155/155 [==============================] - 2s 10ms/step - loss: 1.3514 - accuracy: 0.3838 - val_loss: 1.3107 - val_accuracy: 0.7143
Epoch 55/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3489 - accuracy: 0.3773 - val_loss: 1.3086 - val_accuracy: 0.6548
Epoch 56/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3916 - accuracy: 0.3725 - val_loss: 1.3248 - val_accuracy: 0.7143
Epoch 57/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3639 - accuracy: 0.3725 - val_loss: 1.3346 - val_accuracy: 0.3929
Epoch 58/100
155/155 [==============================] - 2s 10ms/step - loss: 1.3598 - accuracy: 0.3830 - val_loss: 1.3204 - val_accuracy: 0.5714
Epoch 59/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3506 - accuracy: 0.3992 - val_loss: 1.3410 - val_accuracy: 0.3333
Epoch 60/100
155/155 [==============================] - 2s 14ms/step - loss: 1.3614 - accuracy: 0.3757 - val_loss: 1.2922 - val_accuracy: 0.7024
Epoch 61/100
155/155 [==============================] - 2s 13ms/step - loss: 1.3713 - accuracy: 0.3717 - val_loss: 1.3099 - val_accuracy: 0.7024
Epoch 62/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3445 - accuracy: 0.3814 - val_loss: 1.3104 - val_accuracy: 0.7143
Epoch 63/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3459 - accuracy: 0.3854 - val_loss: 1.3405 - val_accuracy: 0.5000
Epoch 64/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3577 - accuracy: 0.3927 - val_loss: 1.3376 - val_accuracy: 0.6429
Epoch 65/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3466 - accuracy: 0.4032 - val_loss: 1.2953 - val_accuracy: 0.6905
Epoch 66/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3498 - accuracy: 0.4032 - val_loss: 1.3079 - val_accuracy: 0.6905
Epoch 67/100
155/155 [==============================] - 2s 14ms/step - loss: 1.3442 - accuracy: 0.3919 - val_loss: 1.3116 - val_accuracy: 0.6667
Epoch 68/100
155/155 [==============================] - 2s 14ms/step - loss: 1.3311 - accuracy: 0.3919 - val_loss: 1.3487 - val_accuracy: 0.6190
Epoch 69/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3240 - accuracy: 0.3846 - val_loss: 1.3653 - val_accuracy: 0.2381
Epoch 70/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3223 - accuracy: 0.4024 - val_loss: 1.3040 - val_accuracy: 0.7143
Epoch 71/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3211 - accuracy: 0.3911 - val_loss: 1.3524 - val_accuracy: 0.4524
Epoch 72/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3401 - accuracy: 0.3862 - val_loss: 1.2809 - val_accuracy: 0.7024
Epoch 73/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3214 - accuracy: 0.4000 - val_loss: 1.2836 - val_accuracy: 0.6905
Epoch 74/100
155/155 [==============================] - 2s 13ms/step - loss: 1.3073 - accuracy: 0.3773 - val_loss: 1.2998 - val_accuracy: 0.6548
Epoch 75/100
155/155 [==============================] - 2s 16ms/step - loss: 1.3286 - accuracy: 0.3814 - val_loss: 1.2996 - val_accuracy: 0.7024
Epoch 76/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3233 - accuracy: 0.4008 - val_loss: 1.2849 - val_accuracy: 0.7024
Epoch 77/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3105 - accuracy: 0.3968 - val_loss: 1.3271 - val_accuracy: 0.6905
Epoch 78/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2687 - accuracy: 0.4032 - val_loss: 1.3298 - val_accuracy: 0.5357
Epoch 79/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3043 - accuracy: 0.4089 - val_loss: 1.3238 - val_accuracy: 0.6905
Epoch 80/100
155/155 [==============================] - 2s 11ms/step - loss: 1.3197 - accuracy: 0.4057 - val_loss: 1.3512 - val_accuracy: 0.5357
Epoch 81/100
155/155 [==============================] - 2s 13ms/step - loss: 1.2991 - accuracy: 0.4113 - val_loss: 1.3278 - val_accuracy: 0.6548
Epoch 82/100
155/155 [==============================] - 2s 16ms/step - loss: 1.3156 - accuracy: 0.4219 - val_loss: 1.3232 - val_accuracy: 0.5595
Epoch 83/100
155/155 [==============================] - 2s 12ms/step - loss: 1.2946 - accuracy: 0.4081 - val_loss: 1.2888 - val_accuracy: 0.6667
Epoch 84/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2957 - accuracy: 0.4065 - val_loss: 1.3235 - val_accuracy: 0.5714
Epoch 85/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2911 - accuracy: 0.4186 - val_loss: 1.3225 - val_accuracy: 0.6190
Epoch 86/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2783 - accuracy: 0.4073 - val_loss: 1.3149 - val_accuracy: 0.6786
Epoch 87/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2791 - accuracy: 0.4300 - val_loss: 1.3775 - val_accuracy: 0.5476
Epoch 88/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2915 - accuracy: 0.4081 - val_loss: 1.3627 - val_accuracy: 0.5714
Epoch 89/100
155/155 [==============================] - 2s 15ms/step - loss: 1.2718 - accuracy: 0.4300 - val_loss: 1.3622 - val_accuracy: 0.5595
Epoch 90/100
155/155 [==============================] - 2s 13ms/step - loss: 1.2565 - accuracy: 0.4340 - val_loss: 1.3810 - val_accuracy: 0.5595
Epoch 91/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2765 - accuracy: 0.4170 - val_loss: 1.3525 - val_accuracy: 0.5238
Epoch 92/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2771 - accuracy: 0.4381 - val_loss: 1.3200 - val_accuracy: 0.6786
Epoch 93/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2316 - accuracy: 0.4453 - val_loss: 1.3958 - val_accuracy: 0.4167
Epoch 94/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2489 - accuracy: 0.4243 - val_loss: 1.3542 - val_accuracy: 0.6310
Epoch 95/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2722 - accuracy: 0.4243 - val_loss: 1.3568 - val_accuracy: 0.5833
Epoch 96/100
155/155 [==============================] - 2s 15ms/step - loss: 1.2843 - accuracy: 0.4332 - val_loss: 1.4396 - val_accuracy: 0.3929
Epoch 97/100
155/155 [==============================] - 2s 14ms/step - loss: 1.2825 - accuracy: 0.4372 - val_loss: 1.3747 - val_accuracy: 0.5119
Epoch 98/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2772 - accuracy: 0.4381 - val_loss: 1.3821 - val_accuracy: 0.6071
Epoch 99/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2609 - accuracy: 0.4291 - val_loss: 1.4234 - val_accuracy: 0.5238
Epoch 100/100
155/155 [==============================] - 2s 11ms/step - loss: 1.2656 - accuracy: 0.4235 - val_loss: 1.4075 - val_accuracy: 0.4524
In [ ]:
result=function_model("SMOTE_ANN_5_Layers_BN_dropout",model2, history2, X_train_smote,y_train_smote,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  SMOTE_ANN_5_Layers_BN_dropout
3/3 [==============================] - 0s 5ms/step
Train Accuracy score:  0.4234817922115326
Test Accuracy score:  0.4523809552192688
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.73      0.61      0.67        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.45        84
   macro avg       0.15      0.12      0.13        84
weighted avg       0.54      0.45      0.49        84

No description has been provided for this image

lets try SMOTE with Bidirectional LSTM¶

In [ ]:
#preparing model8

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model8 = tf.keras.Sequential()

model8.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  weights=[embedding_matrix], #Embeddings taken from pre-trained model8
                  #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model8.add(tf.keras.layers.Dropout(0.3))

model8.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(256), merge_mode='sum'))
#model8.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model8.add(tf.keras.layers.Dropout(0.3))


#model8.add(tf.keras.layers.Dense(256, activation='relu'))
#model8.add(tf.keras.layers.Dropout(0.3))

model8.add(tf.keras.layers.Dense(128, activation='relu'))
model8.add(tf.keras.layers.Dropout(0.5))
model8.add(tf.keras.layers.BatchNormalization())

model8.add(tf.keras.layers.Dense(64, activation='relu'))
model8.add(tf.keras.layers.Dropout(0.5))
model8.add(tf.keras.layers.BatchNormalization())

model8.add(tf.keras.layers.Dense(32, activation='relu'))
model8.add(tf.keras.layers.Dropout(0.5))
model8.add(tf.keras.layers.BatchNormalization())

model8.add(tf.keras.layers.Dense(16, activation='relu'))
model8.add(tf.keras.layers.Dropout(0.5))
model8.add(tf.keras.layers.BatchNormalization())

model8.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model8 summary
model8.summary()


#Compile the model8
model8.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define the EarlyStopping callback
early_stopping = EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True, min_delta=1E-3)


# Define the ReduceLROnPlateau callback
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=5, min_lr=1e-8, verbose=1)

history8=model8.fit(X_train_smote,y_train_smote, validation_data=(X_test,y_test),
            epochs=100,
            batch_size=32,
#            callbacks=[early_stopping, reduce_lr],
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 256)               935936    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 256)               0         
                                                                 
 dense (Dense)               (None, 128)               32896     
                                                                 
 dropout_2 (Dropout)         (None, 128)               0         
                                                                 
 batch_normalization (Batch  (None, 128)               512       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 64)                8256      
                                                                 
 dropout_3 (Dropout)         (None, 64)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 64)                256       
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 32)                2080      
                                                                 
 dropout_4 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization_2 (Bat  (None, 32)                128       
 chNormalization)                                                
                                                                 
 dense_3 (Dense)             (None, 16)                528       
                                                                 
 dropout_5 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_3 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_4 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2980941 (11.37 MB)
Trainable params: 2980461 (11.37 MB)
Non-trainable params: 480 (1.88 KB)
_________________________________________________________________
Epoch 1/100
39/39 [==============================] - 15s 215ms/step - loss: 2.0402 - accuracy: 0.1951 - val_loss: 1.5473 - val_accuracy: 0.7381
Epoch 2/100
39/39 [==============================] - 7s 182ms/step - loss: 1.9523 - accuracy: 0.2024 - val_loss: 1.5949 - val_accuracy: 0.2381
Epoch 3/100
39/39 [==============================] - 5s 135ms/step - loss: 1.8965 - accuracy: 0.2032 - val_loss: 1.5177 - val_accuracy: 0.7024
Epoch 4/100
39/39 [==============================] - 5s 122ms/step - loss: 1.8519 - accuracy: 0.1984 - val_loss: 1.3868 - val_accuracy: 0.7381
Epoch 5/100
39/39 [==============================] - 4s 105ms/step - loss: 1.8156 - accuracy: 0.1976 - val_loss: 1.4403 - val_accuracy: 0.7381
Epoch 6/100
39/39 [==============================] - 3s 78ms/step - loss: 1.8111 - accuracy: 0.1798 - val_loss: 1.6092 - val_accuracy: 0.0952
Epoch 7/100
39/39 [==============================] - 3s 61ms/step - loss: 1.7888 - accuracy: 0.1951 - val_loss: 1.5850 - val_accuracy: 0.0952
Epoch 8/100
39/39 [==============================] - 3s 64ms/step - loss: 1.7533 - accuracy: 0.1943 - val_loss: 1.5774 - val_accuracy: 0.0952
Epoch 9/100
39/39 [==============================] - 2s 52ms/step - loss: 1.7302 - accuracy: 0.1838 - val_loss: 1.5986 - val_accuracy: 0.0714
Epoch 10/100
39/39 [==============================] - 5s 124ms/step - loss: 1.7116 - accuracy: 0.1927 - val_loss: 1.5878 - val_accuracy: 0.0952
Epoch 11/100
39/39 [==============================] - 2s 55ms/step - loss: 1.6675 - accuracy: 0.2065 - val_loss: 1.5337 - val_accuracy: 0.7381
Epoch 12/100
39/39 [==============================] - 2s 52ms/step - loss: 1.6979 - accuracy: 0.1992 - val_loss: 1.5591 - val_accuracy: 0.7381
Epoch 13/100
39/39 [==============================] - 2s 59ms/step - loss: 1.7007 - accuracy: 0.1822 - val_loss: 1.5640 - val_accuracy: 0.1310
Epoch 14/100
39/39 [==============================] - 2s 59ms/step - loss: 1.6628 - accuracy: 0.2291 - val_loss: 1.5770 - val_accuracy: 0.2262
Epoch 15/100
39/39 [==============================] - 2s 52ms/step - loss: 1.6770 - accuracy: 0.1879 - val_loss: 1.6009 - val_accuracy: 0.0952
Epoch 16/100
39/39 [==============================] - 2s 47ms/step - loss: 1.6601 - accuracy: 0.2000 - val_loss: 1.5821 - val_accuracy: 0.0952
Epoch 17/100
39/39 [==============================] - 2s 47ms/step - loss: 1.6484 - accuracy: 0.2121 - val_loss: 1.5943 - val_accuracy: 0.0952
Epoch 18/100
39/39 [==============================] - 2s 40ms/step - loss: 1.6364 - accuracy: 0.2089 - val_loss: 1.5845 - val_accuracy: 0.7262
Epoch 19/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6476 - accuracy: 0.1984 - val_loss: 1.5838 - val_accuracy: 0.7381
Epoch 20/100
39/39 [==============================] - 2s 62ms/step - loss: 1.6365 - accuracy: 0.1960 - val_loss: 1.5883 - val_accuracy: 0.5714
Epoch 21/100
39/39 [==============================] - 2s 54ms/step - loss: 1.6318 - accuracy: 0.2032 - val_loss: 1.5796 - val_accuracy: 0.7381
Epoch 22/100
39/39 [==============================] - 2s 40ms/step - loss: 1.6344 - accuracy: 0.2202 - val_loss: 1.5931 - val_accuracy: 0.0952
Epoch 23/100
39/39 [==============================] - 1s 35ms/step - loss: 1.6228 - accuracy: 0.2130 - val_loss: 1.6002 - val_accuracy: 0.0833
Epoch 24/100
39/39 [==============================] - 2s 49ms/step - loss: 1.6313 - accuracy: 0.2089 - val_loss: 1.5974 - val_accuracy: 0.0476
Epoch 25/100
39/39 [==============================] - 2s 44ms/step - loss: 1.6337 - accuracy: 0.1773 - val_loss: 1.5873 - val_accuracy: 0.0833
Epoch 26/100
39/39 [==============================] - 2s 45ms/step - loss: 1.6238 - accuracy: 0.2040 - val_loss: 1.5922 - val_accuracy: 0.0952
Epoch 27/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6294 - accuracy: 0.1951 - val_loss: 1.5987 - val_accuracy: 0.0952
Epoch 28/100
39/39 [==============================] - 2s 46ms/step - loss: 1.6187 - accuracy: 0.2065 - val_loss: 1.6024 - val_accuracy: 0.0952
Epoch 29/100
39/39 [==============================] - 2s 50ms/step - loss: 1.6214 - accuracy: 0.1984 - val_loss: 1.6004 - val_accuracy: 0.0952
Epoch 30/100
39/39 [==============================] - 2s 45ms/step - loss: 1.6139 - accuracy: 0.2105 - val_loss: 1.5991 - val_accuracy: 0.0714
Epoch 31/100
39/39 [==============================] - 2s 46ms/step - loss: 1.6174 - accuracy: 0.2016 - val_loss: 1.6024 - val_accuracy: 0.0714
Epoch 32/100
39/39 [==============================] - 2s 44ms/step - loss: 1.6151 - accuracy: 0.1903 - val_loss: 1.5986 - val_accuracy: 0.0714
Epoch 33/100
39/39 [==============================] - 2s 42ms/step - loss: 1.6183 - accuracy: 0.2008 - val_loss: 1.5960 - val_accuracy: 0.1190
Epoch 34/100
39/39 [==============================] - 2s 45ms/step - loss: 1.6109 - accuracy: 0.1984 - val_loss: 1.5983 - val_accuracy: 0.1190
Epoch 35/100
39/39 [==============================] - 2s 46ms/step - loss: 1.6201 - accuracy: 0.2089 - val_loss: 1.5978 - val_accuracy: 0.2857
Epoch 36/100
39/39 [==============================] - 2s 48ms/step - loss: 1.6135 - accuracy: 0.2178 - val_loss: 1.6049 - val_accuracy: 0.1190
Epoch 37/100
39/39 [==============================] - 2s 51ms/step - loss: 1.6181 - accuracy: 0.1838 - val_loss: 1.6098 - val_accuracy: 0.0714
Epoch 38/100
39/39 [==============================] - 1s 39ms/step - loss: 1.6178 - accuracy: 0.2024 - val_loss: 1.6015 - val_accuracy: 0.1071
Epoch 39/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6169 - accuracy: 0.1976 - val_loss: 1.5992 - val_accuracy: 0.0714
Epoch 40/100
39/39 [==============================] - 2s 42ms/step - loss: 1.6145 - accuracy: 0.1943 - val_loss: 1.5984 - val_accuracy: 0.0714
Epoch 41/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6150 - accuracy: 0.1854 - val_loss: 1.5936 - val_accuracy: 0.7381
Epoch 42/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6134 - accuracy: 0.1911 - val_loss: 1.6007 - val_accuracy: 0.7381
Epoch 43/100
39/39 [==============================] - 2s 41ms/step - loss: 1.6115 - accuracy: 0.2186 - val_loss: 1.6018 - val_accuracy: 0.7381
Epoch 44/100
39/39 [==============================] - 2s 51ms/step - loss: 1.6179 - accuracy: 0.1676 - val_loss: 1.6050 - val_accuracy: 0.0714
Epoch 45/100
39/39 [==============================] - 2s 52ms/step - loss: 1.6081 - accuracy: 0.2243 - val_loss: 1.5989 - val_accuracy: 0.3333
Epoch 46/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6080 - accuracy: 0.2049 - val_loss: 1.6015 - val_accuracy: 0.7262
Epoch 47/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6133 - accuracy: 0.1960 - val_loss: 1.5983 - val_accuracy: 0.7381
Epoch 48/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6092 - accuracy: 0.2097 - val_loss: 1.5924 - val_accuracy: 0.7381
Epoch 49/100
39/39 [==============================] - 2s 39ms/step - loss: 1.6139 - accuracy: 0.2000 - val_loss: 1.5940 - val_accuracy: 0.7381
Epoch 50/100
39/39 [==============================] - 1s 38ms/step - loss: 1.6091 - accuracy: 0.1935 - val_loss: 1.5850 - val_accuracy: 0.7381
Epoch 51/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6149 - accuracy: 0.1943 - val_loss: 1.5873 - val_accuracy: 0.7381
Epoch 52/100
39/39 [==============================] - 1s 38ms/step - loss: 1.6112 - accuracy: 0.1976 - val_loss: 1.5959 - val_accuracy: 0.7381
Epoch 53/100
39/39 [==============================] - 2s 44ms/step - loss: 1.6139 - accuracy: 0.1862 - val_loss: 1.5972 - val_accuracy: 0.7381
Epoch 54/100
39/39 [==============================] - 2s 48ms/step - loss: 1.6128 - accuracy: 0.1927 - val_loss: 1.6085 - val_accuracy: 0.0238
Epoch 55/100
39/39 [==============================] - 2s 40ms/step - loss: 1.6114 - accuracy: 0.1911 - val_loss: 1.6144 - val_accuracy: 0.0238
Epoch 56/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6120 - accuracy: 0.1976 - val_loss: 1.6124 - val_accuracy: 0.0357
Epoch 57/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6117 - accuracy: 0.1935 - val_loss: 1.6056 - val_accuracy: 0.0714
Epoch 58/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6088 - accuracy: 0.2057 - val_loss: 1.5992 - val_accuracy: 0.7381
Epoch 59/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6083 - accuracy: 0.2178 - val_loss: 1.6013 - val_accuracy: 0.0714
Epoch 60/100
39/39 [==============================] - 2s 45ms/step - loss: 1.6118 - accuracy: 0.1838 - val_loss: 1.6038 - val_accuracy: 0.0714
Epoch 61/100
39/39 [==============================] - 2s 47ms/step - loss: 1.6116 - accuracy: 0.1919 - val_loss: 1.6020 - val_accuracy: 0.0714
Epoch 62/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6117 - accuracy: 0.1960 - val_loss: 1.6100 - val_accuracy: 0.0714
Epoch 63/100
39/39 [==============================] - 2s 42ms/step - loss: 1.6105 - accuracy: 0.1960 - val_loss: 1.6093 - val_accuracy: 0.0714
Epoch 64/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6096 - accuracy: 0.2000 - val_loss: 1.6054 - val_accuracy: 0.0714
Epoch 65/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6124 - accuracy: 0.1960 - val_loss: 1.6150 - val_accuracy: 0.0714
Epoch 66/100
39/39 [==============================] - 2s 40ms/step - loss: 1.6119 - accuracy: 0.1935 - val_loss: 1.6151 - val_accuracy: 0.0714
Epoch 67/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6089 - accuracy: 0.2105 - val_loss: 1.6157 - val_accuracy: 0.0476
Epoch 68/100
39/39 [==============================] - 1s 35ms/step - loss: 1.6108 - accuracy: 0.1992 - val_loss: 1.6181 - val_accuracy: 0.0952
Epoch 69/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6099 - accuracy: 0.2073 - val_loss: 1.6115 - val_accuracy: 0.0714
Epoch 70/100
39/39 [==============================] - 2s 43ms/step - loss: 1.6130 - accuracy: 0.1895 - val_loss: 1.6020 - val_accuracy: 0.0714
Epoch 71/100
39/39 [==============================] - 2s 43ms/step - loss: 1.6118 - accuracy: 0.1984 - val_loss: 1.6031 - val_accuracy: 0.0714
Epoch 72/100
39/39 [==============================] - 2s 47ms/step - loss: 1.6101 - accuracy: 0.1984 - val_loss: 1.6015 - val_accuracy: 0.0714
Epoch 73/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6107 - accuracy: 0.1992 - val_loss: 1.6060 - val_accuracy: 0.0714
Epoch 74/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6116 - accuracy: 0.2113 - val_loss: 1.6086 - val_accuracy: 0.0714
Epoch 75/100
39/39 [==============================] - 2s 37ms/step - loss: 1.6122 - accuracy: 0.2024 - val_loss: 1.6054 - val_accuracy: 0.0714
Epoch 76/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6105 - accuracy: 0.2186 - val_loss: 1.6025 - val_accuracy: 0.0714
Epoch 77/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6112 - accuracy: 0.1822 - val_loss: 1.6074 - val_accuracy: 0.0714
Epoch 78/100
39/39 [==============================] - 2s 39ms/step - loss: 1.6096 - accuracy: 0.1976 - val_loss: 1.6202 - val_accuracy: 0.0714
Epoch 79/100
39/39 [==============================] - 2s 42ms/step - loss: 1.6111 - accuracy: 0.1919 - val_loss: 1.6181 - val_accuracy: 0.0714
Epoch 80/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6079 - accuracy: 0.2049 - val_loss: 1.6161 - val_accuracy: 0.0714
Epoch 81/100
39/39 [==============================] - 2s 45ms/step - loss: 1.6134 - accuracy: 0.1822 - val_loss: 1.6093 - val_accuracy: 0.0714
Epoch 82/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6103 - accuracy: 0.2049 - val_loss: 1.6130 - val_accuracy: 0.0714
Epoch 83/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6099 - accuracy: 0.1968 - val_loss: 1.6112 - val_accuracy: 0.0714
Epoch 84/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6124 - accuracy: 0.1814 - val_loss: 1.6158 - val_accuracy: 0.0714
Epoch 85/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6093 - accuracy: 0.2057 - val_loss: 1.6161 - val_accuracy: 0.0714
Epoch 86/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6088 - accuracy: 0.2113 - val_loss: 1.6153 - val_accuracy: 0.0714
Epoch 87/100
39/39 [==============================] - 1s 33ms/step - loss: 1.6103 - accuracy: 0.2008 - val_loss: 1.6122 - val_accuracy: 0.0952
Epoch 88/100
39/39 [==============================] - 1s 34ms/step - loss: 1.6110 - accuracy: 0.2008 - val_loss: 1.6147 - val_accuracy: 0.0238
Epoch 89/100
39/39 [==============================] - 2s 43ms/step - loss: 1.6112 - accuracy: 0.2194 - val_loss: 1.6148 - val_accuracy: 0.0952
Epoch 90/100
39/39 [==============================] - 2s 52ms/step - loss: 1.6103 - accuracy: 0.2000 - val_loss: 1.6169 - val_accuracy: 0.0238
Epoch 91/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6093 - accuracy: 0.2065 - val_loss: 1.6145 - val_accuracy: 0.0238
Epoch 92/100
39/39 [==============================] - 1s 37ms/step - loss: 1.6110 - accuracy: 0.1984 - val_loss: 1.6072 - val_accuracy: 0.0238
Epoch 93/100
39/39 [==============================] - 2s 43ms/step - loss: 1.6120 - accuracy: 0.1984 - val_loss: 1.6032 - val_accuracy: 0.5833
Epoch 94/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6104 - accuracy: 0.1887 - val_loss: 1.6051 - val_accuracy: 0.0952
Epoch 95/100
39/39 [==============================] - 1s 36ms/step - loss: 1.6103 - accuracy: 0.1968 - val_loss: 1.6091 - val_accuracy: 0.0952
Epoch 96/100
39/39 [==============================] - 1s 35ms/step - loss: 1.6089 - accuracy: 0.2057 - val_loss: 1.6116 - val_accuracy: 0.0238
Epoch 97/100
39/39 [==============================] - 1s 32ms/step - loss: 1.6103 - accuracy: 0.1854 - val_loss: 1.6201 - val_accuracy: 0.0952
Epoch 98/100
39/39 [==============================] - 2s 40ms/step - loss: 1.6099 - accuracy: 0.1984 - val_loss: 1.6199 - val_accuracy: 0.0476
Epoch 99/100
39/39 [==============================] - 1s 38ms/step - loss: 1.6098 - accuracy: 0.2049 - val_loss: 1.6145 - val_accuracy: 0.0714
Epoch 100/100
39/39 [==============================] - 1s 38ms/step - loss: 1.6095 - accuracy: 0.2105 - val_loss: 1.6144 - val_accuracy: 0.0238
In [ ]:
result=function_model("Smote_Bi-directional_LSTM_early_stop_reducedLR",model8, history8, X_train_smote,y_train_smote,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Smote_Bi-directional_LSTM_early_stop_reducedLR
3/3 [==============================] - 1s 17ms/step
Train Accuracy score:  0.21052631735801697
Test Accuracy score:  0.02380952425301075
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.00      0.00      0.00        62
           1       0.00      0.00      0.00         8
           2       0.00      0.00      0.00         6
           3       0.00      0.00      0.00         6
           4       0.02      1.00      0.05         2

    accuracy                           0.02        84
   macro avg       0.00      0.20      0.01        84
weighted avg       0.00      0.02      0.00        84

No description has been provided for this image

Trying text augmentation¶

In [25]:
cleaned_data
Out[25]:
Country Local Industry Sector Gender Employee Type Critical Risk Year Month Day Weekday WeekofYear season is_holiday clean_description all_description
0 Country_01 Local_01 Mining Male Third Party Pressed 2016 January 1 Friday 53 Summer Yes while removing the drill rod of the jumbo for ... Country Country_01 Local Local_01 Industry Sec...
1 Country_02 Local_02 Mining Male Employee Pressurized Systems 2016 January 2 Saturday 53 Summer No during the activation of a sodium sulphide pum... Country Country_02 Local Local_02 Industry Sec...
2 Country_01 Local_03 Mining Male Third Party (Remote) Manual Tools 2016 January 6 Wednesday 1 Summer No in the substation milpo located at level when ... Country Country_01 Local Local_03 Industry Sec...
3 Country_01 Local_04 Mining Male Third Party Others 2016 January 8 Friday 1 Summer No being am approximately in the nv cx ob the per... Country Country_01 Local Local_04 Industry Sec...
4 Country_01 Local_04 Mining Male Third Party Others 2016 January 10 Sunday 1 Summer No approximately at am in circumstances that the ... Country Country_01 Local Local_04 Industry Sec...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
413 Country_01 Local_04 Mining Male Third Party Others 2017 July 4 Tuesday 27 Winter No being approximately am approximately when lift... Country Country_01 Local Local_04 Industry Sec...
414 Country_01 Local_03 Mining Female Employee Others 2017 July 4 Tuesday 27 Winter No the collaborator moved from the infrastructure... Country Country_01 Local Local_03 Industry Sec...
415 Country_02 Local_09 Metals Male Employee Venomous Animals 2017 July 5 Wednesday 27 Winter No during the environmental monitoring activity i... Country Country_02 Local Local_09 Industry Sec...
416 Country_02 Local_05 Metals Male Employee Cut 2017 July 6 Thursday 27 Winter No the employee performed the activity of strippi... Country Country_02 Local Local_05 Industry Sec...
417 Country_01 Local_04 Mining Female Third Party Fall prevention (same level) 2017 July 9 Sunday 27 Winter No at am when the assistant cleaned the floor of ... Country Country_01 Local Local_04 Industry Sec...

418 rows × 15 columns

In [26]:
cleaned_data['all_description']
Out[26]:
0      Country Country_01 Local Local_01 Industry Sec...
1      Country Country_02 Local Local_02 Industry Sec...
2      Country Country_01 Local Local_03 Industry Sec...
3      Country Country_01 Local Local_04 Industry Sec...
4      Country Country_01 Local Local_04 Industry Sec...
                             ...                        
413    Country Country_01 Local Local_04 Industry Sec...
414    Country Country_01 Local Local_03 Industry Sec...
415    Country Country_02 Local Local_09 Industry Sec...
416    Country Country_02 Local Local_05 Industry Sec...
417    Country Country_01 Local Local_04 Industry Sec...
Name: all_description, Length: 418, dtype: object
In [27]:
y.shape
Out[27]:
(418, 5)
In [28]:
np.unique(np.argmax(y, axis=1), return_counts=True)
Out[28]:
(array([0, 1, 2, 3, 4]), array([309,  40,  31,  30,   8]))
In [29]:
y
Out[29]:
array([[1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       ...,
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.],
       [1., 0., 0., 0., 0.]], dtype=float32)
In [30]:
X_train, X_test, y_train, y_test = train_test_split(cleaned_data['all_description'],y, test_size=0.2,random_state=42, stratify=y)
In [31]:
X_train.shape, X_test.shape, y_train.shape, y_test.shape
Out[31]:
((334,), (84,), (334, 5), (84, 5))
In [32]:
np.unique(np.argmax(y_test, axis=1), return_counts=True)
Out[32]:
(array([0, 1, 2, 3, 4]), array([62,  8,  6,  6,  2]))
In [33]:
np.unique(np.argmax(y_train, axis=1), return_counts=True)
Out[33]:
(array([0, 1, 2, 3, 4]), array([247,  32,  25,  24,   6]))
In [34]:
train_df=pd.concat(
    [pd.DataFrame(X_train).reset_index(drop=True), pd.DataFrame(np.argmax(y_train,axis=1))], axis=1)
In [35]:
train_df = train_df.rename(columns={'all_description': 'Description', 0: 'Accident Level'})
In [36]:
train_df.head(1)
Out[36]:
Description Accident Level
0 Country Country_01 Local Local_03 Industry Sec... 0
In [ ]:
train_df['Accident Level'].value_counts()
Out[ ]:
0    247
1     32
2     25
3     24
4      6
Name: Accident Level, dtype: int64
In [ ]:
!pip install missingno -q
!pip install hvplot -q
!pip install transformers -q
!pip install nlpaug -q
!pip install sacremoses -q
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 10.1 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 410.5/410.5 kB 6.0 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 897.5/897.5 kB 10.4 MB/s eta 0:00:00
In [ ]:
import random, re
import time
import warnings
import missingno as mno

import nltk
nltk.download('punkt')
nltk.download('stopwords')
from nltk.tokenize import word_tokenize
from tqdm import tqdm
from nltk.corpus import stopwords

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from nltk.corpus import stopwords
from sklearn.model_selection import train_test_split
import nlpaug.augmenter.char as nac
import nlpaug.augmenter.word as naw
import nlpaug.augmenter.sentence as nas
import nlpaug.flow as nafc
from nlpaug.util import Action



%matplotlib inline
[nltk_data] Downloading package punkt to /root/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data]   Unzipping corpora/stopwords.zip.
In [ ]:
def augment_data_with_back_translation(text, label):
    # Initialize the back translation augmenter
    aug_bt = naw.BackTranslationAug(
        from_model_name='facebook/wmt19-en-de',
        to_model_name='facebook/wmt19-de-en',
        device='cuda'
    )

    # Perform back translation augmentation on the input text
    augmented_text = aug_bt.augment(text)

    # Return the augmented text along with the original label
    return augmented_text, label


def create_text_augmentations(text, label):
    models = ['bert-base-uncased', 'distilbert-base-uncased', 'roberta-base']
    actions = ['substitute', 'insert']
    augmentations = []

    # Initialize the augmenters
    for model_name in models:
        for action in actions:
            augmenter = naw.ContextualWordEmbsAug(
                model_path=model_name,
                action=action,
                device='cpu'  # Change 'cuda' to 'cpu' if GPU is not available
            )

            # Generate augmented text
            augmented_text = augmenter.augment(text)

            # Append augmented text and label to the list
            augmentations.append((augmented_text, label))

    return augmentations
In [ ]:
import tqdm
import pickle

def augment_minority_classes(dataset, label_column, output_file):
    majority_count = dataset[label_column].value_counts().max()
    minority_classes = dataset[label_column].value_counts().index[dataset[label_column].value_counts() < majority_count]

    augmented_data = []

    # Load previously processed data if exists
    try:
        with open(output_file, 'rb') as file:
            augmented_data = pickle.load(file)
            last_label = augmented_data[-1]['Accident Level']
            start_index = dataset[label_column].value_counts().index.get_loc(last_label) + 1
            minority_classes = dataset[label_column].value_counts().index[start_index:]
            print(f"Starting from index : {start_index}")

    except FileNotFoundError:
        pass

    with tqdm.tqdm(total=len(minority_classes), desc="Augmenting Minority Classes") as pbar:
        for minority_class in minority_classes:
            print(f"Now Executing minority_class : {minority_class}")
            minority_data = dataset[dataset[label_column] == minority_class].copy()
            minority_data = minority_data[['Description', label_column]]  # Select only the 'Description' and 'Accident Level' columns

            minority_data_count = len(minority_data)

            while minority_data_count < majority_count:
                for index, row in minority_data.iterrows():
                    text = str(row['Description'])  # Convert to string to handle non-string values
                    label = row[label_column]

                    # Apply augmentation functions
                    augmented_text_bt, augmented_label_bt = augment_data_with_back_translation(text, label)
                    augmented_texts_cwe = create_text_augmentations(text, label)

                    # Add original and augmented data to the list
                    augmented_data.append({'Description': text, 'Accident Level': label})
                    augmented_data.append({'Description': augmented_text_bt, 'Accident Level': augmented_label_bt})
                    minority_data_count += 2

                    text_length = len(text.split())
                    max_length = int(text_length * 0.5)
                    min_length = int(text_length * 0.2)
                    summary_text = summarize_minority_classes(text, max_length, min_length)
                    augmented_data.append({'Description': summary_text, 'Accident Level': label})
                    minority_data_count += 1

                    for augmented_text, augmented_label in augmented_texts_cwe:
                        augmented_data.append({'Description': augmented_text, 'Accident Level': augmented_label})
                        minority_data_count += 1

                    if minority_data_count % 100 == 0:
                        print(minority_data_count)

                    # Check if minority_data_count exceeds or matches majority_count, then break out of the loop
                    if minority_data_count >= majority_count:
                        break

                # Write augmented data to file after processing each class
                with open(output_file, 'wb') as file:
                    pickle.dump(augmented_data, file)

                pbar.update(1)

            augmented_data.extend(minority_data.to_dict(orient='records'))

    # Convert the list of dictionaries to a DataFrame with 'Description' and 'Accident Level' columns
    print(augmented_data)
    augmented_df = pd.DataFrame(augmented_data, columns=['Description', 'Accident Level'])

    return augmented_df
In [ ]:
from transformers import pipeline

def summarize_minority_classes(description,  max_length,min_length):
    # Initialize the summarization pipeline
    summarizer = pipeline("summarization", model="facebook/bart-large-cnn")

    # Generate summary using the pipeline
    summary = summarizer(description, max_length=max_length, min_length=min_length, do_sample=True)

    # Return summary text along with the label
    return {'Description': summary[0]['summary_text']}
In [ ]:
create_text_augmentations('hello I got injured very badly and head broke', 0)
Out[ ]:
[(['hello i got stuck very heavily in head broke'], 0),
 (['hello i got up injured very badly late and the head broke'], 0),
 (['kang kim got injured very badly and nearly broke'], 0),
 (['hello uncle i got injured badly very badly and bruised head broke'], 0),
 (['hello I got there very early and hand broke'], 0),
 (['hello I got injured pretty very quite badly and half head broke'], 0)]
In [ ]:
import spacy

!python -m spacy download en_core_web_md --quiet

# Load the spaCy model
nlp = spacy.load("en_core_web_md")

se1='hello i got stuck very heavily in head broke'
se2='hello i got up injured very badly late and the head broke'
se3='hello I got injured pretty very quite badly and half head broke'

doc1=nlp(se1)
doc2=nlp(se2)
doc3=nlp(se3)


print(doc1.similarity(doc2))
print(doc1.similarity(doc3))
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.8/42.8 MB 13.3 MB/s eta 0:00:00
✔ Download and installation successful
You can now load the package via spacy.load('en_core_web_md')
⚠ Restart to reload dependencies
If you are in a Jupyter or Colab notebook, you may need to restart Python in
order to load all the package's dependencies. You can do this by selecting the
'Restart kernel' or 'Restart runtime' option.
0.8135950380404123
0.8195588199293271
In [ ]:
train_df
Out[ ]:
Description Accident Level
0 Country Country_01 Local Local_03 Industry Sec... 0
1 Country Country_01 Local Local_04 Industry Sec... 2
2 Country Country_01 Local Local_04 Industry Sec... 0
3 Country Country_01 Local Local_06 Industry Sec... 0
4 Country Country_01 Local Local_03 Industry Sec... 0
... ... ...
329 Country Country_01 Local Local_03 Industry Sec... 0
330 Country Country_01 Local Local_06 Industry Sec... 0
331 Country Country_01 Local Local_03 Industry Sec... 0
332 Country Country_02 Local Local_02 Industry Sec... 0
333 Country Country_02 Local Local_05 Industry Sec... 0

334 rows × 2 columns

In [ ]:
train_df['Accident Level'].value_counts()
Out[ ]:
0    247
1     32
2     25
3     24
4      6
Name: Accident Level, dtype: int64
In [ ]:
output_file = "/content/sample_data/output_file1.pkl"

augmented_minority_df = augment_minority_classes(train_df, 'Accident Level',output_file)
Augmenting Minority Classes:   0%|          | 0/4 [00:00<?, ?it/s]
Now Executing minority_class : 1
config.json:   0%|          | 0.00/825 [00:00<?, ?B/s]
pytorch_model.bin:   0%|          | 0.00/1.08G [00:00<?, ?B/s]
Some weights of FSMTForConditionalGeneration were not initialized from the model checkpoint at facebook/wmt19-en-de and are newly initialized: ['model.decoder.embed_positions.weight', 'model.encoder.embed_positions.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
generation_config.json:   0%|          | 0.00/235 [00:00<?, ?B/s]
config.json:   0%|          | 0.00/825 [00:00<?, ?B/s]
model.safetensors:   0%|          | 0.00/1.08G [00:00<?, ?B/s]
Some weights of FSMTForConditionalGeneration were not initialized from the model checkpoint at facebook/wmt19-de-en and are newly initialized: ['model.decoder.embed_positions.weight', 'model.encoder.embed_positions.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
generation_config.json:   0%|          | 0.00/260 [00:00<?, ?B/s]
tokenizer_config.json:   0%|          | 0.00/67.0 [00:00<?, ?B/s]
vocab-src.json:   0%|          | 0.00/849k [00:00<?, ?B/s]
merges.txt:   0%|          | 0.00/315k [00:00<?, ?B/s]
tokenizer_config.json:   0%|          | 0.00/67.0 [00:00<?, ?B/s]
vocab-src.json:   0%|          | 0.00/849k [00:00<?, ?B/s]
merges.txt:   0%|          | 0.00/315k [00:00<?, ?B/s]
tokenizer_config.json:   0%|          | 0.00/48.0 [00:00<?, ?B/s]
config.json:   0%|          | 0.00/570 [00:00<?, ?B/s]
vocab.txt:   0%|          | 0.00/232k [00:00<?, ?B/s]
tokenizer.json:   0%|          | 0.00/466k [00:00<?, ?B/s]
model.safetensors:   0%|          | 0.00/440M [00:00<?, ?B/s]
tokenizer_config.json:   0%|          | 0.00/28.0 [00:00<?, ?B/s]
config.json:   0%|          | 0.00/483 [00:00<?, ?B/s]
vocab.txt:   0%|          | 0.00/232k [00:00<?, ?B/s]
tokenizer.json:   0%|          | 0.00/466k [00:00<?, ?B/s]
model.safetensors:   0%|          | 0.00/268M [00:00<?, ?B/s]
tokenizer_config.json:   0%|          | 0.00/25.0 [00:00<?, ?B/s]
config.json:   0%|          | 0.00/481 [00:00<?, ?B/s]
vocab.json:   0%|          | 0.00/899k [00:00<?, ?B/s]
merges.txt:   0%|          | 0.00/456k [00:00<?, ?B/s]
tokenizer.json:   0%|          | 0.00/1.36M [00:00<?, ?B/s]
model.safetensors:   0%|          | 0.00/499M [00:00<?, ?B/s]
config.json:   0%|          | 0.00/1.58k [00:00<?, ?B/s]
model.safetensors:   0%|          | 0.00/1.63G [00:00<?, ?B/s]
generation_config.json:   0%|          | 0.00/363 [00:00<?, ?B/s]
vocab.json:   0%|          | 0.00/899k [00:00<?, ?B/s]
merges.txt:   0%|          | 0.00/456k [00:00<?, ?B/s]
tokenizer.json:   0%|          | 0.00/1.36M [00:00<?, ?B/s]
Augmenting Minority Classes:  25%|██▌       | 1/4 [15:37<46:53, 937.77s/it]
Now Executing minority_class : 2
Augmenting Minority Classes:  50%|█████     | 2/4 [35:00<35:40, 1070.28s/it]
Now Executing minority_class : 3
Augmenting Minority Classes: 100%|██████████| 4/4 [51:18<00:00, 627.48s/it] 
Now Executing minority_class : 4
Augmenting Minority Classes: 9it [1:10:45, 471.75s/it]
[{'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month December Day 9 Weekday Friday WeekofYear 49 season Summer is_holiday No clean_description during the withdrawal of the metal form support screw in the inside of well when the bolt of the chain holder was loosened the employee and a helper exerted force on the combination wrench when the bolt came to loosen immediately pressing the ring finger of the employees right hand against the support', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Other Year 2016 Month December Day 9 Weekday Friday WeekofYear 49 season Summer is _ holiday No clean _ description during the removal of the metal form support screw in the inside of well when the bolts of the chain holder was loose the employee and a helper used force on the combi key when the bolts came to loose immediately press the ring finger of the workers right hand against the support'], 'Accident Level': 1}, {'Description': {'Description': 'The employee and a helper exerted force on the combination wrench when the bolt came to loosen immediately pressing the ring finger of the employees right hand against the support screw in the inside of well. The'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 02 industry sector mining gender of employee human third party ( remote ) critical risk others year 2016 month december day 1 weekday friday weekofyear 49 season summer is _ holiday no clean _ description during the withdrawal of the metal form factor screw in the place of well when the bolt of the chain holder was loosened one employee mounted a guard exerted force on the combination of after the bolt came to loosen immediately pressing the ring finger of the employees right hand against the support'], 'Accident Level': 1}, {'Description': ['country country _ 02 local 12 local _ 02 industry sector mining gender male employee type third party ( remote ) critical risk risk others year 2016 2016 month december day 9 weekday friday weekofyear 49 season summer is _ holiday event no clean _ description during the withdrawal mechanism of the one metal form support screw in the inside of well when the bolt of the wire chain holder was loosened the employee and a helper exerted force on the combination arm wrench when the bolt came to loosen quickly immediately pressing the ring finger of the employees right hand against which the support'], 'Accident Level': 1}, {'Description': ['country country _ 2012 local local _ 12 industry sector mining gender male employee type third party ( remote ) critical risk others 2015 2016 month december day 9 weekday friday weekofyear harvest season summer is _ holiday no clean _ description during the introduction of the metal form support screw in the inside contact well when the bolt housing the chain holder was underneath the employee and a helper exerted force on the contact wrench when the bolt came to loosen immediately pressing the ring finger of the employees right hand against the receiver'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 02 industry sector mining gender male employee type third preference party ( or remote ) critical risk others year round 2016 month december day 9 weekday friday school weekofyear 49 season summer is _ holiday no clean _ description during the withdrawal of the traditional metal form support grip screw in the inside latch of well when the bolt of the chain holder was loosened around the employee and a helper exerted force on the combination wrench when the bolt came to loose loosen immediately pressing the ring finger joint of the employees right hand against the support'], 'Accident Level': 1}, {'Description': ['Country Mining_02 Local Authority_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month December Day 9 Weekday Friday Ending 49 season Summer is_holiday No clean_description during the withdrawal of the metal form support screw in the inside of well when the bolt supporting the chain holder was loosened the employee and mine helper exerted force with the combination wrench when metal bolt came to loosen away pressing his ring finger of the employees right arm against the support'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month December Day Date 9 Weekday Friday WeekofYear Summer 49 season Summer is_holiday No longer clean_description during the withdrawal of labour the bare metal core form of support screw in the inside of well when the bolt of the chain holder was loosened the employee and a helper exerted force on the operating combination wrench bolt when the bolt came to partially loosen immediately pressing the ring finger of the employees right hand against the support'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description the injured collaborator and one of his colleagues wanted to move a rim of a scoop tire for which using their own strength they threw the rim to the floor to make it roll and in that instant the eyelash hits the fifth finger of the right hand against the ring producing the injury', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is _ holiday No clean _ description The injured collaborator and one of his colleagues wanted to move a rim of a shovel tire, for which they threw the rim on the ground on their own to make it roll and at that moment the eyelash hits the fifth finger of the right hand against the ring that causes the injury'], 'Accident Level': 1}, {'Description': {'Description': 'The injured collaborator and one of his colleagues wanted to move a rim of a scoop tire. In that instant the eyelash hits the fifth finger of the right hand against the ring producing the injury.'}, 'Accident Level': 1}, {'Description': ['national country _ 01 local local _ 04 industry sector occupational gender male employee type third party critical risk disaster of 2017 on february 25th 8 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ description the injured collaborator and one of his colleagues wanted to replace a rim of a scoop tire for which using their own strength they threw the rim to the floor to make it come across in that instant the eyelash hits the fifth finger of the right hand destroying the ring producing the injury'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 provincial industry sector mining employee gender male employee type third party critical risk cut year 2017 april month february day 8 weekday wednesday weekofyear 6 season summer is _ i holiday no clean _ description the injured collaborator and one of his colleagues wanted to move a rim of a scoop tire kick for which using their own strength they threw the rim to the floor around to make it roll and in on that instant the first eyelash fragment hits the fifth finger of the right hand placed against the ring producing the injury'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk cut year 2017 month february day 8 weekday wednesday weekofyear 6 season 26 is _ 16 wednesday clean _ description the injured collaborator and one of his colleagues proceeded to move in rim of a shattered tire for which using their own strength they threw the boulder to the floor to made it roll and in that instant the eyelash hits the fifth finger of another left hand against the ring producing the injury'], 'Accident Level': 1}, {'Description': ['logging country country _ 01 local local _ 04 logging industry sector mining gender † male employee type third party critical risk cut year 2017 month february day 8 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ description the injured collaborator † and another one of his local colleagues wanted somebody to move a rim of on a scoop car tire for which using their own strength they threw the rim to the floor to make it roll and in that instant the eyelash suddenly hits the fifth finger of the right hand against the ring producing the injury'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Person Type Third Party Critical Risk Cut Year 2017 Month February Day 8 April Wednesday WeekofYear New season Summer is_holiday No clean_description the injured collaborator and three of his colleagues wanted to move a bit of a scoop tire for which using their own strength they threw the rim to the floor to make it roll and in that instant the eyelash bit the fifth screw behind the right thumbnail against the thumb producing the injury'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk 1 Cut 2016 Year 2017 Month 30 February Day 8 Weekday Wednesday WeekofYear 6 season Summer is_holiday Week No one clean_description the injured collaborator and one member of the his colleagues wanted to move a rim of a scoop rubber tire for which using their very own strength they threw the rim to the floor to make it roll and in just that instant the eyelash hits the fifth finger of the right hand against the ring producing the injury'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Projection Year 2017 Month June Day 17 Weekday Saturday WeekofYear 24 season Autumn is_holiday No clean_description when the master additive was taken from the afo license plate towards the launching team no the collaborator bonifacio robot assistant at the moment he received the bucket emptiness of the operator enoc feels that he drops a drop of additive in the right eye feeling a burning sensation so he immediately goes to wash the affected eye in the teams eyes then the collaborator is evacuated to natclar at the time of the accident the employee had glasses but he was not using them correctly', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Projection Year 2017 Month June Day 17 Weekday Saturday WeekofYear 24 season Autumn is _ holiday No clean _ description when the master additive was taken from the afo license plate into the launch team no the collaborator bonifacio robot assistant at the moment he received the bucket of the operator enoc feels that he dropped a drop of additive in the right eye feeling a burning sensation so he immediately goes to wash the affected eye in the teams eyes then the collaborator is clear to natclar at the time of the accident the employee had glasses but he was not correctly using them'], 'Accident Level': 1}, {'Description': {'Description': 'The accident occurred when the master additive was taken from the afo license plate towards the launching team. The employee had glasses but he was not using them correctly.'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party company risk projection year by month june day 17 weekday saturday weekofyear 24 may autumn is _ holiday no clean _ description when the master bucket was taken from the drivers license plate towards the launching team no the collaborator bonifacio robot assistant at the moment he received the bucket emptiness of the room enoc feels that he drops a drop of additive in the pilots eye feeling a burning pain so he immediately goes to wash the affected eye in the teams eyes then the collaborator is evacuated to natclar to the time of the accident the employee had glasses but he continued not using them correctly'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry unit sector 16 mining gender male employee type third party critical risk projection year 2017 month june 16 day 17 weekday saturday weekofyear 24 season autumn is _ holiday no clean _ description when the whole master industrial additive tank was taken from the afo license plate towards the launching team no the collaborator bonifacio robot assistant at the moment it he received the bucket emptiness of the operator enoc feels that he drops a drop of additive in the right eye feeling a burning sensation so he is immediately goes to wash the affected eye in the training teams eyes then the collaborator is evacuated to natclar at the time of the accident the employee had some glasses but he was not using them correctly'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical service projection year 2017 month long day 17 weekday saturday weekofyear 24 season autumn is _ holiday no zero _ description when the master additive was taken from the afo license plate towards the launching team no the collaborator bonifacio consulting assistant at the moment he becomes the bucket emptiness of the operator enoc feels that constantly drops a drop of gas immediately the right eye produces a burning sensation so he immediately goes to wash the affected eye in the teams eyes then the collaborator is evacuated to verify at the time of the accident the employee had glasses but he was not using them correctly'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector employees mining gender male employee type third party critical risk projection year 2017 month june day 17 september weekday saturday weekofyear 24 season autumn is _ holiday no clean _ description when notification the master additive was taken from the old afo license plate towards the launching the team employee no the collaborator bonifacio robot assistant at the moment he received the bucket emptiness of the robot operator enoc feels that he drops a liquid drop of additive in the right eye feeling a burning sensation so he immediately simultaneously goes to wash the affected eye in the teams eyes then the collaborator is evacuated to natclar at the time of the accident the employee only had glasses but he was not using them correctly'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Female Male Employee Type State Party Critical Risk Projection Year 2017 Month June Day 17 Weekday Saturday WeekofYear 24 season Autumn is_holiday No Date_description when the master additive was taken from the afo license team towards the launching team no the engineer bonifacio robot assistant on the moment he received the bucket emptiness of the operator enoc feels that he drops a drop of additive in the right eye feeling a burning sensation so he immediately goes to wash the affected parts in the teams eyes then the collaborator is evacuated in natclar at the time of the accident an employee had glasses but he was not using them correctly'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Method Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Projection Work Year 2017 Month June 9 Day 17 Weekday Saturday WeekofYear March 24 season Autumn is_holiday No clean_description when the master additive was taken from the afo license plate heading towards the launching team no the collaborator bonifacio robot an assistant at the moment he received the bucket emptiness of chemicals the production operator enoc feels that he inadvertently drops a drop of additive in the right eye feeling a burning sensation so he immediately goes to wash the affected eye water in the teams eyes then the collaborator is evacuated to natclar at the time of the accident the employee had glasses but he was not using them correctly'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 23 Weekday Sunday WeekofYear 42 season Spring is_holiday No clean_description in the activity of loading of explosives in front of level gts there was a fall of a rock fragment reaching right arm of the blaster causing a cutblunt', 'Accident Level': 1}, {'Description': ['Country Country Country _ 02 Local _ 02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month October Day 23 Day of the Week Sunday Day of the Week Year 42 Season Spring is Holidays No Clean Description During the activity of loading explosives in front of the plain gts there was a fall of a rock splinter that reached the right arm of the explosive, causing a blunt cut'], 'Accident Level': 1}, {'Description': {'Description': 'There was a fall of a rock fragment reaching right arm of the blaster causing a cutblunt. In the activity of loading of'}, 'Accident Level': 1}, {'Description': ['country country _ u local local _ t industry sector mining gender worker employee type employee critical risk others visit 2016 2nd october day 23 weekday sunday weekofyear 42 season spring is _ gone no clean _ description in the activity of loading of bombs in front of level gts there was a fall of a jagged fragment on right arm of the blaster as a cutblunt'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 02 forest industry sector mining gender male employee type employee critical risk others year 2016 october month 14 october day 23 weekday sunday weekofyear 42 season 1 spring is _ next holiday no clean _ description in the activity scenario of loading of explosives in front of mountain level gts there was a steep fall of a rock fragment after reaching right arm of from the blaster causing a cutblunt'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 02 industry personnel mining gender male employee male employee critical risk others year 2016 month 365 day 23 weekday weekend weekofyear 42 sunday spring is _ 31 no sunday _ description in normal activity of loading of tires in front of level gts there was a fall of a rock fragment reaching right arm of the blaster causing a cutblunt'], 'Accident Level': 1}, {'Description': ['2008 country country _ 02 • local local _ 08 02 industry sector limited mining gender male association employee voting type employee critical risk others year end 2016 month october day 23 weekday sunday weekofyear year 42 season spring is _ holiday no longer clean _ description in the activity of loading of explosives in front of level gts there apparently was a fall of a rock fragment reaching right arm of the blaster causing a cutblunt'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee type Medical Others Year 2016 Month October 02 23 Weekday Sunday September 42 season 2013 month_holiday No clean_description in the activity after loading of explosives in front enemy level 2 there was a fall of the rock fragment reaching right arm of the blaster causing a cutblunt'], 'Accident Level': 1}, {'Description': ['Country 2000 Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk & Others Year 2016 Month 1 October Day 23 Weekday Day Sunday WeekofYear 42 Off season Spring 2012 is_holiday No clean_description in the activity of loading of explosives outside in front of 3 level gts there was a huge fall of a rock fragment reaching right arm of the muzzle blaster causing a cutblunt'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressurized Systems / Chemical Substances Year 2016 Month April Day 22 Weekday Friday WeekofYear 16 season Autumn is_holiday No clean_description the employee reports that he placed the air lance in the tank and then opened the manual air valve and projection of acid solution heated toward him reaching the front of the left thigh', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressurized Systems / Chemical Substances Year 2016 Month April Day 22 Weekday Friday WeekofYear 16 season Autumn is _ holiday No clean _ description The employee reports that he placed the air lance in the tank and then opened the manual ventilation valve and ejected acid solution towards him, reaching up to the front of the left thigh'], 'Accident Level': 1}, {'Description': {'Description': 'The employee reports that he placed the air lance in the tank and then opened the manual air valve. The projection of acid solution heated toward him reached the'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local society _ 05 industry sector single gender male employee type third party system risk pressurized systems / chemical substances year 2016 month april week 22 weekday friday weekofyear 16 season autumn year _ holiday no employee _ description the employee reports that he placed mechanical air lance in the tank and then opened the manual air valve and projection of acid solution heated toward and reaching the front of top left front'], 'Accident Level': 1}, {'Description': ['country country _ 02 regional local local _ 05 industry sector metals gender model male employee type third party industry critical risk pressurized systems / chemical substances summer year 2016 month april day 22 weekday friday weekofyear 16 season autumn year is _ holiday no clean _ weather description the employee reports are that he placed the air lance in the tank window and then opened the manual air valve and projection of acid base solution heated toward touch him reaching the front of the left thigh'], 'Accident Level': 1}, {'Description': ['country country _ 37 local local _ 05 industry sector metals gender male employee type third month critical oil pressurized systems / heavy substances year 2016 month april day 22 weekday friday weekofyear 16 season autumn is _ holiday no clean _ description the employee reports that he placed the air lance outside the tank compartment then opened the manual air brake and projection of acid solution heated toward air reaching the front hose pants left thigh'], 'Accident Level': 1}, {'Description': ['country country _ class 02 local local _ 05 industry sector • metals gender male employee type third party critical risk pressurized systems / chemical substances innovation year 2016 month 01 april day 22 weekday friday weekofyear 16 autumn season 22 autumn is _ holiday no clean _ description the employee reports that he placed the air lance in surrounding the tank and then opened inside the manual air pressure valve and projection of acid solution heated toward him reaching the front of the left leg thigh'], 'Accident Level': 1}, {'Description': ['Country Region_02 Local Local_05 Education Sector Metals Gender Male Employee Type Third Party Critical Risk Life Systems / Chemical Substances Year 2016 Month April Day 22 Weekday Friday WeekofYear 16 season Autumn winter_holiday or clean_description the employee reports the he placed the gas lance in the tank and then opened the side safety valve and projection of acid solution heated toward him reaching the front of the ship thigh'], 'Accident Level': 1}, {'Description': ['Country Country_02 Date Local Area Local_05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressurized Systems Utilities / Transportation Chemical Substances Year Easter 2016 Month Beginning April Day 22 Weekday Friday WeekofYear April 16 season Autumn is_holiday No clean_description the employee reports that he placed the air lance in the tank and had then opened the manual air valve and projection of acid solution heated toward him reaching the front of body the the left thigh'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month June Day 24 Weekday Saturday WeekofYear 25 season Autumn is_holiday No clean_description the injured and his collaborators at the time of making the hdpe pipe which was to be used for hydraulic filling is released causing one of the ends of the pipe to impact on the lip causing an injury apparently the support deconcentrates and releases a little the pipe this action generates that the pipe presented with the rubber of the victalica copla is released generating the impact previously described the pipe was empty without hydraulic load', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2017 Month June Day 24 Weekday Saturday Weekday Saturday WeekofYear 25 Season Autumn is Holidays No Clean _ Description The injured person and his / her employees at the time of manufacture of the Hdpe pipe that should be used for hydraulic filling is released, causing one of the ends of the pipe to hit the lip and cause an injury, apparently deconcentrating the support and releasing a little of the pipe that this action generates that the pipe is released with the rubber of the Victalica Copla, thereby generating the previously described impact, the pipe was empty without hydraulic load'], 'Accident Level': 1}, {'Description': {'Description': 'The injured and his collaborators at the time of making the hdpe pipe which was to be used for hydraulic filling is released causing one of the ends of the pipe to impact on the lip causing an injury. The support deconcentrates and releases a'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 01 industry of mining gender male employee type employee critical risk others year 2017 month june day 24 weekday saturday night 25 season autumn is _ holiday no clean _ description the injured and his collaborators at the time of firing the hdpe which which was to be used as hydraulic filling is released causing one of the ends of the turbine to impact on the lip resulting an injury apparently breaking support deconcentrates and releases a little the pipe this action generates that the pipe presented to the rubber of the victalica copla is released generating the impact well described the pipe was empty without hydraulic load'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type employee critical risk others historic year 2017 month june day 24 weekday saturday weekofyear 25 season autumn is _ holiday no clean _ description the injured and his collaborators at exactly the time of making the hdpe pipe which was originally to be used for hydraulic filling is released causing one of the ends of the pipe to impact directly on the lip causing an injury apparently the support deconcentrates and releases a little the pipe and this action generates that the pipe handle presented with the rubber skin of the victalica copla is released generating the impact previously described where the pipe deck was empty without any hydraulic load'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 01 industry sector single gender male employee type employee critical risk others year 2017 month june day employment weekday saturday weekofyear 25 season autumn year _ 2001 no clean _ description the injured and his collaborators at the time of making the hdpe pipe which was to test used for hydraulic filling is released causing one of the ends underneath the pipe to fracture on the lip causing an injury apparently the support shaft thus releases a little the stress this action generates that the pipe presented with the rubber of the victalica copla is released generating the impact previously described the pipe was empty without hydraulic load'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 01 industry sector ex mining gender male employee type employee critical risk others year 2017 month june day 24 weekday 8 saturday weekofyear 25 season autumn is _ holiday no tomorrow clean _ description the injured and his collaborators at about the time involved of making the hdpe pipe which was to be used for hydraulic filling is released causing one of the lower ends of the pipe to impact on the distal lip causing an injury apparently the support deconcentrates and releases when a residual little the pipe this action generates that the pipe presented with the rubber of the victalica copla is released causing generating the impact previously described the pipe was empty without hydraulic load'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Role Type Employee Critical Risk Number Year 2017 Month June October 24 Weekday Saturday WeekofYear 25 season Autumn is_holiday No clean_description the injured and his collaborators at the time of making a hdpe pipe which was to be used for hydraulic filling is angered causing one of the parts of the pipe to bang on the lip causing an injury apparently the support deconcentrates and releases a little the pipe this action generates further the pipe presented with the rubber of the victalica copla is damaged generating further impact previously described the pipe was empty without hydraulic load'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Retirement Year 2017 Month June Day 24 Weekday Saturday WeekofYear 25 season Autumn is_holiday No clean_description the injured and only his collaborators employed at the time of making the hdpe pipe on which the was to be used solely for hydraulic filling is accidentally released causing one of the ends of the pipe to impact on the lip supports causing an injury apparently the support deconcentrates and releases fracturing a little the pipe this action generates that the pipe presented with the rubber of the victalica copla is released generating the impact previously described the pipe was completely empty without hydraulic load'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month September Day 21 Weekday Wednesday WeekofYear 38 season Spring is_holiday No clean_description employee was preparing rice using a utensil type skimmer to stir inside the pressure cooker when part of the cable broke reaching its hand causing a blunt cut', 'Accident Level': 1}, {'Description': ['Country Country Country Country City 05 Branch Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month September Day 21 Weekday Wednesday Weekday Week 38 Season Spring is Vacation No Clean Description Employee prepared rice with a skimmer of utensil type in pressure cooker to stir when part of the cable broke that reached his hand and caused a blunt cut'], 'Accident Level': 1}, {'Description': {'Description': 'An employee was preparing rice using a utensil type skimmer to stir inside the pressure cooker when part of the cable broke'}, 'Accident Level': 1}, {'Description': ['country country _ 02 industry local _ 05 industry sector metals company male employee type third party critical risk manual 4th class 2016 month september day 21 of wednesday weekofyear and season spring garden _ holiday no clean _ any employee was preparing rice using a utensil type skimmer to stir inside the pressure vessels when part of the cable broke reaching her hand causing a blunt cut'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 construction industry service sector metals gender male employee type third party critical risk manual tools year 2016 month 17 september day 21 weekday wednesday weekofyear 38 season spring is _ rainy holiday no clean _ description employee was preparing cooked rice using a utensil using type of skimmer lens to stir inside up the pressure cooker when part of the cable broke while reaching its hand causing a blunt cut'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 private sector key gender male employee type third party critical risk manual tools year break month september day 21 autumn wednesday weekofyear 38 season 2015 is _ holiday day clean _ earth employee was preparing fireworks using a utensil type skimmer small stir inside the pressure bag when part of the cable broke reaching its hand causing a blunt cut'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector metals † gender male employee type third party critical risk manual tools year 2016 month september day 21 summer weekday wednesday weekofyear 38 season spring is _ holiday no clean _ description denotes employee was preparing rice balls using a utensil type skimmer to stir seeds inside and the pressure sensor cooker hole when part of carrying the cable broke reaching its hand possibly causing a blunt cut'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_05 Industry Industrial Metals Gender Male Sex Status Third Party Critical Risk Manual Tools Year October Month September Day 21 Weekday 27 WeekofYear 38 season Spring is_holiday No holiday_description employee crew preparing rice using a wooden type skimmer to stir inside the pressure cooker when part of the cable broke reaching its ceiling causing a minor cut'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_05 Industry Product Sector Metals Gender Male Employee Type Third Party Person Critical Risk Manual Tools Year September 2016 Month May September Day 21 Weekday Wednesday WeekofYear 38 season Spring is_holiday Month No clean_description employee was inside preparing rice using a deep utensil type skimmer to stir inside the pressure cooker when part two of the cable broke reaching its hand causing for a large blunt cut'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 10 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description while aligning the right bracket of tower n when releasing the tension applied by the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect overcoming the resistance of the lineman operator and reshaping the the hands of the assistant beating the assistant in the frontal region', 'Accident Level': 1}, {'Description': ['Land Land _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 10 Weekday Wednesday WeekofYear 6 season Summer is _ holiday No clean _ description while aligning the right bracket of tower n when loosening the tension applied by the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect over the resistance of the lineman operator and reforming the hands of the assistant beat the assistant in the frontal region'], 'Accident Level': 1}, {'Description': {'Description': 'The tower n aligns the right bracket of tower n when releasing the tension applied by the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local business _ 03 industry sector by all the employee type third party critical risk others year 2016 month february past 10 weekday wednesday since 6 season summer is _ holiday no time _ description while aligning the right bracket of tower n when releasing the tension applied by the tirford of tn when pushing the lever towards the tension release point it passes through mechanical effect overcoming the resistance of the lineman operator and reshaping the the hands of the assistant beating the thumb in the frontal region'], 'Accident Level': 1}, {'Description': ['country country _ 01 local 19 local _ 03 industry sector mining gender male with employee type third party critical risk others year 2016 halloween month february day march 10 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ description while permanently aligning the right bracket of tower n when physically releasing the tension applied by the tirford of tn when pushing the balance lever u towards the tension release point it returns by mechanical effect overcoming the resistance of the lineman operator and reshaping all the the hands of the assistant beating the assistant in the right frontal region'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector specific gender male employee type third party critical risk others action 2016 month february day 10 job wednesday weekofyear 6 season summer is _ holiday no start _ up while aligning the right end of tower n when releasing the tension applied towards the tirford of tn when adjusting the lever until the tension release point it returns by mechanical effect overcoming the resistance of the lineman operator and reshaping the the hands of the assistant of the assistant in the frontal region'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third parties party critical risk of others year 2016 month february day 10 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ holiday description while manually aligning the right bracket of tower n when releasing the tension brake applied by the tirford of tn when accidentally pushing the lever towards the tension release point it returns by dynamic mechanical effect overcoming cracking the resistance of the lineman operator and reshaping the the hands of the assistant also beating the assistant in the frontal feedback region'], 'Accident Level': 1}, {'Description': ['Country Country_01 Year Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Last 2016 Month February Day 10 Wednesday Wednesday WeekofYear 6 season Summer is_holiday No clean_description while aligning the right bracket of tower n when releasing the tension applied on the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect overcoming the resistance and the lineman operator thereby reshaping both the face of the assistant beating the force by the frontal region'], 'Accident Level': 1}, {'Description': ['Country Country_01 Division Local Local_03 Location Industry Sector Mining Gender Male Employee Type Neutral Third Party Critical Risk Others Year 2016 Month February Day 10 Weekday Wednesday WeekofYear 6 season Month Summer is_holiday No clean_description while aligning the right bracket of tower n t when releasing the tension applied by the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect overcoming the resistance of resisting the lineman operator and later reshaping the the left hands skin of the assistant beating the assistant in the frontal lobe region'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Female Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month August Day 30 Weekday Tuesday WeekofYear 35 season Winter is_holiday No clean_description during the execution of the area cleaning activity using a hoe the employee hit against a fixed metal structure in the area coming to reach the abdomen on the left', 'Accident Level': 1}, {'Description': ['Country Country Country Country Country 08 Industry Sector Metals Gender Female Employee Type Third Party (Remote Control) Critical Risk Other Year 2016 Month August Day 30 Weekday Tuesday Weekday Year 35 Season Winter is Vacation No clean description while performing the cleaning activity with the hoe hit the employee against a solid metal structure in the area that comes to reach the belly on the left'], 'Accident Level': 1}, {'Description': {'Description': 'The employee hit a hoe against a fixed metal structure in the area coming to reach the abdomen on the left. During the execution of'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 08 private sector metals gender in employee type third officer ( remote ) critical risk others year 2016 saturday august day monday weekday tuesday september 35 friday winter is _ holiday no clean _ description during the execution of site area for activity using a hoe the employee hit against a fixed metal structure in the area coming to be the abdomen on the left'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 1 08 industry sector metals gender female by employee type third party ( remote ) critical risk others year 2016 month august day 30 weekday tuesday weekofyear 35 season winter is _ 1 holiday of no clean _ description during the scheduled execution of the area cleaning activity using a hoe device the employee will hit against a fixed or metal structure in the area coming to reach into the abdomen on the outside left'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 08 industry sector metals gender list employee type third party ( remote ) critical risk others year 2016 month august day 30 may tuesday weekofyear 35 season winter is _ holiday no clean _ description during the execution team job area cleaning activity using direct hit the employee hit hits a sheet metal structure in target area coming to reach the abdomen to the left'], 'Accident Level': 1}, {'Description': ['country 01 country _ 02 employment local local _ 08 industry sector metals gender female employee type third joining party ( remote ) critical risk others year 2016 month august day 30 weekday tuesday weekofyear 35 season winter is _ holiday no clean _ description during activity the daily execution of the area cleaning activity using a hoe the employee hit against a fixed metal supporting structure in position the area are coming to reach the abdomen sliding on towards the left'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Gender Female Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month August Day 30 October Week WeekofYear 35 season Winter is_holiday No clean_description during the execution of the main cleaning chore on The string the victim pulls against a fixed metal structure in the area coming to reach their abdomen on the left'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local 07 Local_08 Industry Sector Metals Gender Type Female Employee Type Third Party Entry (Remote) Critical Risk Others Year 2016 July Month August Day 30 Weekday Tuesday WeekofYear May 35 Fall season Winter is_holiday No clean_description during the actual execution of the area cleaning activity using a hoe the employee hit against a fixed metal frame structure in the area coming to reach the large abdomen container on the left'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Individual protection equipment Year 2017 Month March Day 10 Weekday Friday WeekofYear 10 season Summer is_holiday No clean_description in the nv chamber of accumulation of aggregates when the worker made the cast of shotcrete towards the crown of the work at pm he perceives discomfort and fogging of the full face then decides to take it off and chooses to use only his safety glasses for comfort to continue with the thrown shotcrete at pm suffers the projection of shotcrete rebound particles in the left eye', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Individual Protective Equipment Year 2017 Month March Day 10 Weekday Friday Weekday Friday Weekday Year 10 Season Summer is Vacation No clean description in the nv chamber of accumulation of aggregates, when the worker has made the moulding of shotcrete towards the crown of the work at pm, he perceives discomfort and fogging of the whole face, then decides to remove it and decides to use only his safety goggles to ensure comfort to continue with the thrown shotcrete at pm, suffers the projection of shotcrete rebound particles in the left eye'], 'Accident Level': 1}, {'Description': {'Description': 'The worker made the cast of shotcrete towards the crown of the work at pm he perceives discomfort and fogging of the full face then decides to take it off and chooses to use only his safety glasses for comfort to continue with the'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male male type third activity critical risk individual protection equipment by 2017 month march day 10 weekday friday weekofyear 10 season summer is _ holiday no clean _ description in the nv chamber current accumulation and aggregates when the worker made the cast of glass towards the crown of the work at pm he perceives spinning and fogging for the full face then decides to take it off and chooses to use only his safety glasses for comfort to continue with when thrown face at pm suffers the projection of shotcrete rebound particles in the left eye'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical risk individual protection equipment year 2017 month march 23 day 10 seasonal weekday friday weekofyear april 10 season summer is _ holiday no clean _ description in the nv chamber of accumulation of ice aggregates when the worker made the cast of shotcrete towards m the height crown of the worker work at pm and he perceives discomfort and fogging of the full face then decides to take it off and chooses afterwards to use only his safety glasses for comfort to continue with the thrown away shotcrete at pm suffers the projection of shotcrete rebound particles in the left eye'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender choice employee type third party safety risk individual protection equipment year 2017 , march day 10 weekday friday weekofyear 10 season summer is _ holiday no clean _ description in the nv chamber of accumulation of aggregates when the worker made the cast of shotcrete in the crown of the crown at pm he perceives discomfort and fogging of the affected face then decides to take it off and chooses to use only his safety glasses for effect to continue with the casting shotcrete at pm suffers the projection created shotcrete rebound particles in the human eye'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining association gender male employee employee type third party critical risk individual protection equipment year 2017 month 17 march day 10 weekday friday weekofyear 10 season summer is _ holiday no clean _ description in the nv chamber of accumulation of aggregates when the worker made the cast of shotcrete towards the crown of the work at pm he perceives considerable discomfort movements and fogging of the full front face then decides to take it off and then chooses to occasionally use only his safety glasses for comfort to continue with the thrown shotcrete whilst at pm suffers the excessive projection of shotcrete rebound particles in the left eye'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Individual protection equipment Year 2017 Month March Day 10 Weekday Friday WeekofYear and season Summer is_holiday No clean_description in the nv chamber of accumulation of aggregates when the worker made some cut of shotcrete towards the crown of its work as moment he perceives discomfort for fogging of the full face then decides to try it slow and chooses to use only his safety glasses for comfort to continue with the thrown shotcrete at pm suffers the projection of shotcrete tar particles in the left eye'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Role Type Third Generation Party Critical Skills Risk Individual protection Safety equipment Condition Year 2017 14 Month March Day 10 Weekday Friday Day WeekofYear 10 season summer Summer is_holiday No clean_description in the nv chamber of accumulation of aggregates when the worker made the cast of shotcrete throw towards the crown of the work at pm he perceives discomfort and fogging of the full face then decides to take it off and chooses to use only his safety glasses for comfort to continue with the thrown shotcrete at pm suffers the projection of shotcrete rebound particles in particular the left eye'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month July Day 27 Weekday Wednesday WeekofYear 30 season Winter is_holiday No clean_description at times when the mill operator proceeded to remove the vitaulic flange connecting the suction pipe to the pump housing b with the intention of desanding the system when removing the flange the mineral pulp comes out under pressure and impacts on the face and wrist of his left hand generating the lesion described at the time of the accident both the secondary mill no and the pumps a and b were blocked for maintenance work and the mill operator used his safety glasses', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month July Day 27 Weekday Wednesday WeekofYear 30 Season Winter is Holidays No clean description at the time when the mill operator continued to remove the glass flange connecting the suction pipe to the pump housing b, with the intention of de-grinding the system when removing the flange, the mineral pulp comes under pressure and hits the face and wrist of his left hand, causing the lesion described at the time of the accident to block both the secondary mill no. and the pumps a and b for maintenance and the mill operator used his safety goggles'], 'Accident Level': 1}, {'Description': {'Description': 'The mill operator removed the vitaulic flange connecting the suction pipe to the pump housing b with the intention of desanding the system. When removing the flange the mineral pulp comes out under pressure and impacts on the face and wrist of his left hand generating the'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 2016 23 july day 27 weekday wednesday weekofyear 30 season winter is _ holiday · clean _ description at times when the mill operator proceeded to remove the vitaulic flange connecting the suction pipe to a pump housing b with the intention of desanding the system and removing the flange the mineral pulp comes out under pressure and impacts on the thumb and wrist and his left hand forming the lesion described at the time of the inspection both the secondary mill no generators the pumps a and b were blocked for later work and the mill operator used his safety glasses'], 'Accident Level': 1}, {'Description': ['urban country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 01 2016 month july 16 day 27 weekday wednesday weekofyear 30 season winter is _ holiday no clean _ description at times when the mill first operator proceeded to remove the vitaulic flange connecting the suction pipe to the pump housing b with the intention of desanding out the system when removing the flange the liquid mineral pulp comes out under pressure and impacts on the small face and wrist of his left hand generating the lesion described at the time of the accident both however the secondary mill no and the pumps a and well b were blocked for maintenance work and the mill operator used his safety watch glasses'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 03 industry sector mining gender male employee type employee protection risk others year 2016 month july day 27 weekday wednesday weekofyear 30 season winter is _ holiday no clean _ description at times when the mill operator proceeded to remove the metal flange connecting the mill pipe to the pump housing b with the intention of desanding the system when removing a screw the mineral pulp comes out under pressure and impacts on exposed face and wrist of human left hand generating the lesion described at one time of the accident both the secondary mill no cover the pumps a and b were blocked for maintenance work and the mill operator used his safety glasses'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee occupational type employee critical risk others year 2016 month july day june 27 weekday wednesday weekofyear 30 season winter is _ holiday report no clean _ friday description at times when the mill operator proceeded to remove the vitaulic flange connecting in the residual suction pipe hole to the pump housing b with the intention of desanding the system when temporarily removing the flange the mineral pulp comes out under pressure and impacts on the face bone and wrist of his left hand generating the lesion described at the time of the accident both the secondary mill no and the pumps a and b were blocked for maintenance work and the mill operator used his safety protection glasses'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Class Male Employee Type Employee Role Risk Others Year 2016 Month July Day 27 Weekday Wednesday WeekofYear 30 season Winter is_holiday No clean_description at times when the mill operator proceeded to remove the vitaulic flange connecting the suction pipe to the pump housing b with the goal of desanding the system when removing that tubing the mineral pulp comes out under pressure and impacts on the face left wrist injuring his left hand generating the lesion described at the time of the accident both the pressure mill no and the pumps a and b were used upon maintenance work and the mill operator used his safety glasses'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk and Others Year 2016 Month July Day 27 Weekday Wednesday WeekofYear 30 season Winter is_holiday No clean_description at times when the mill operator proceeded to remove the vitaulic magnetic flange connecting the suction pipe to the pump housing b with the intention of desanding the circuit system when removing the flange the mineral pulp comes out flat under the pressure and impacts negatively on the face and wrist size of his left hand generating the lesion previously described at the time of the accident both the pump secondary mill no and the pumps a and b were blocked for maintenance work and when the mill operator used his safety glasses'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month October Day 13 Weekday Thursday WeekofYear 41 season Spring is_holiday No clean_description employee assisted in the support of the gate while the other the tying of the canvas in the frame and by pressing the rope so that the canvas stretched the metal structure moved coming out of the wooden support falling and striking against the employees face causing a cut in the right superciliary', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Other Year 2016 Month October Day 13 Weekday Thursday WeekofYear 41 season Spring is _ holiday No clean _ description Employee assists in supporting the gate, while the other tying the tarp in the frame and by pressing the rope so that the tarp moves the metal structure that fell out of the wooden support and hit the face of the employee, causing a cut in the right superficial'], 'Accident Level': 1}, {'Description': {'Description': 'Employee assisted in the support of the gate while the other the tying of the canvas in the frame and by pressing the rope so that the canvas stretched the metal structure moved coming out of'}, 'Accident Level': 1}, {'Description': ['country district _ 02 local local _ 02 industry sector mining gender male voice type third party ( remote ) critical function others year 2016 month october day 13 weekday thursday weekofyear 41 season spring is _ holiday no clean _ description employee assisted in pulling support from the gate while the children labor tying of the canvas in the frame and by pressing the rope so when the canvas stretched the metal structure moved coming out of the wooden support falling and stuck to the employees face causing a cut in the right superciliary'], 'Accident Level': 1}, {'Description': ['company country and country _ 02 local local _ 02 industry sector mining gender male employee type third party ( remote ) critical risk others year 2016 month october day 13 weekday thursday weekofyear 41 season 8 spring is _ holiday no clean _ job description an employee assisted in the support of the gate while the other the tying of the heavy canvas in the frame and by pressing the rope so that the canvas stretched the metal structure moved coming on out behind of the front wooden support falling and striking against the employees face causing quite a cut in the right superciliary'], 'Accident Level': 1}, {'Description': ['country country _ 02 log local _ 02 minimum restricted mining gender male employee type third party ( remote ) entry risk others year 2016 month october day 13 saturday thursday weekofyear 41 season spring is _ 06 season clean _ description employee assisted in the beating of the gate while the other the tying of the canvas in the frame and by pressing the rope so that the canvas stretched the metal structure moved sideways out of the wooden support falling and striking against the employees face causing a cut in the right leg'], 'Accident Level': 1}, {'Description': ['one country country _ 02 local local _ 02 industry sector mining gender male employee type third party ( remote ) critical user risk others year 2016 month october day 13 weekday thursday weekofyear 41 season 17 spring 2017 is _ holiday no · clean _ description employee assisted in the support of the gate while the other the tying of the canvas tightened in the frame and by pressing the rope itself so that while the canvas stretched the metal structure moved coming out of the wooden support falling and striking against us the employees upon face causing a cut in the right superciliary'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Occup Risk Others Year 2016 Month October 2018 13 Weekday Thursday WeekofYear 41 season July is_holiday No clean_description employees assisted in the support of the gate while others assisted the tying of the canvas in the frame and by pressing the trigger so that stretched canvas stretched the metal structure moved coming out of the wooden support falling and striking against the wooden face causing a crack in the right superciliary'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month Ending October Day 13 Weekday Thursday WeekofYear 41 season Spring is_holiday No clean_description employee assisted in the support of the gate while the owner other the tying of the canvas in the frame and gate by pressing the rope so that as the elastic canvas stretched the metal structure and moved coming out of the wooden supporting support falling and striking directly against the employees face causing to a severe cut in the right superciliary'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressurized Systems Year 2016 Month September Day 16 Weekday Friday WeekofYear 37 season Spring is_holiday No clean_description employee reports that he was monitoring the existence of a borehole of a tubing in the thermal recovery boiler of the ustulation area through the side window when he was struck by projection of heated air that reached his face and right forearm', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressurized Systems Year 2016 Month September Day 16 Weekday Friday WeekofYear 37 season Spring is _ holiday No clean _ description Employee reports that he was monitoring the existence of a borehole of a hose in the thermal recovery boiler of the Usulation Area through the side window when he was hit by projection of heat air that reached his face and right forearm'], 'Accident Level': 1}, {'Description': {'Description': 'The employee reports that he was monitoring the existence of a borehole of a tubing in the thermal recovery boiler of the ustulation area when he was struck by projection of'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector male gender male employee young employee critical risk pressurized systems year 2016 month 17 day 16 calendar friday weekofyear 37 season spring is _ summer week clean _ zone employee reports that he was monitoring the existence of a borehole of a turbine in the thermal recovery boiler of the ustulation area through the side yard when he was struck by projection of heated air that reached his neck and right forearm'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ in 05 industry sector metals gender male employee in type employee critical risk pressurized water systems year 2016 month september 7 day 16 weekday friday weekofyear 37 operating season spring is _ holiday no clean _ description employee reports that while he was monitoring monitoring about the existence of a borehole of a copper tubing in the thermal recovery boiler of the ustulation area through the side window when he was struck by projection of heated air that reached his upper face and right forearm'], 'Accident Level': 1}, {'Description': ['country 06 _ 02 local local _ 6 industry sector metals gender male employee type employee critical risk measurement systems year ending month september article 16 weekday friday weekofyear 37 season spring is _ holiday week clean _ description employee reports that he was monitoring the existence of a borehole of a tubing in the gas recovery boiler of the ustulation factory through the entry window when he was struck by projection of heated steam that reached his face and right forearm'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector metals gender male employee type employee critical risk pressurized systems labor year 2016 month september day 16 weekday friday weekofyear holidays 37 employee season spring is _ holiday holiday no clean _ description employee reports that recently he was monitoring the existence of a borehole of a tubing in the thermal thermal recovery boiler of the local ustulation area through checking the side window insulation when he was struck by projection of heated air that reached his front face and right forearm'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Female Employee Disaster Risk Pressurized Conditions Year 2016 Month September Day 16 Weekday Friday August 37 season Spring is_holiday No clean_description employee who said he was monitoring the existence of a borehole of a tubing in the thermal recovery boiler of the maintenance area through the side window when he was assaulted by projection intense heated concrete that reached his face and right forearm'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_05 Type Industry Sector Metals Gender Male Gender Employee Type Disabled Employee Critical Risk Pressurized Systems Year 2016 Month Month September Day 16 Weekday Friday WeekofYear 37 season Spring is_holiday No other clean_description employee reports that he was monitoring the existence inside of a closed borehole of such a tubing in the thermal recovery boiler of the ustulation area through the side window when he was struck dead by projection leak of heated air that reached his face and right forearm'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk remains of choco Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description in the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the rope from the floor several fragments of rock slide down the slope of the hill one of the cm fragments of diameter approximately impacts the face of the worker producing the aforementioned injury', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Remnants of Chocolate Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 Season Summer is Vacation No clean _ Description in the area of lloclla meters from the substation nro in circumstances that the worker was preparing to take the rope from the ground several boulders sliding down the slope one of the cm fragments of diameter approximately impact on the face of the worker making the above injury'], 'Accident Level': 1}, {'Description': {'Description': 'In the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the rope from the floor several fragments of rock slide down the slope of'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 government sector mining gender male employee type third party critical risk remains of choco by 2017 month february day 27 weekday monday december 2015 season summer is _ 12 no clean _ description in the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the rope from nearby floor several fragments of rock slide down the slope of the slope one of 50 cm fragments of stone approximately onto the face of the worker producing the aforementioned injury'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining industry gender male woman employee type third party critical risk remains of choco year 2017 month february day 27 weekday monday weekofyear 9 season summer day is _ holiday no clean _ room description in the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the loose rope ropes from the floor several smaller fragments of rock slide down the slope of the valley hill one of the cm fragments of diameter approximately impacts the face itself of the worker possibly producing the aforementioned injury'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 reserve sector mining gender male employee reported third party critical sector exposure of choco year 2017 month february day 27 weekday monday weekofyear 9 season summer is _ holiday no clean _ description in the survey of lloclla meters from the substation nro under circumstances that one worker were managing to pick up the rope from the floor several fragments of rock slide down the middle of the hill one of the cm fragments of diameter approximately impacts the consciousness of the worker producing the aforementioned injury'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector female mining workers gender male employee type third occupation party critical risk remains of choco year occupations 2017 month february day 27 weekday monday weekofyear 9 season summer is _ holiday no clean _ description in the area of las lloclla meters from adjoining the substation line nro under circumstances that the worker voluntarily was preparing to pick up the rope from the floor several fragments of rock slide down the slope of the hill one of the cm fragments of diameter approximately immediately impacts the face of the worker producing during the aforementioned injury'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk remains of choco 5 2017 Month February Day Sunday Weekday Monday WeekofYear 9 2016 Summer is_holiday No clean_description in the area of lloclla meters under the substation … under circumstances that the worker was preparing and take up a rope from the floor several chunks of rock slide down the slope of adjacent hill one of the cm fragments of diameter approximately impacts the face of the worker producing the aforementioned injury'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local 3 Local_03 Industry Sector Natural Mining Gender Male Native Employee Work Type Third Party Critical Risk remains of choco Year April 2017 Month February 2 Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description in the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the rope from the floor several fragments pieces of rock slide down the slope of the hill one one of the 5 cm fragments of diameter approximately impacts the forward face of the worker producing the aforementioned injury'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description being hours approximately in circumstances that the administrative ssomac was arranged to move the guillotine of the right side towards the center of the table to make cuts of enmicadas pages when trying to raise the guillotine the middle finger of the right hand it rubs against the edge of the guillotine blade causing the cut in the yolk of the third finger of the right hand', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is _ holiday No clean _ description being hours about in situation that the administrative ssomac was arranged to move the guillotine of the right side towards the center of the table to cut of enmicadas pages when trying to raise the guillotine the middle finger of the right hand it rubs against the edge of the guillotine blade causing the cut in the yolk of the third finger of the right hand'], 'Accident Level': 1}, {'Description': {'Description': 'The guillotine was used to make cuts of enmicadas pages. The middle finger of the right hand rubs against the edge of the blade causing the cut in the yolk of the third finger.'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male occupation type third party critical risk cut over 2017 month february 1st 8 weekday wednesday break 6 season summer is _ 2 no clean _ description being hours approximately in circumstances that the administrative ssomac was arranged including move the guillotine of the right side towards the center of the table to make cuts of the pages when trying to raise the guillotine the middle finger of the right hand repeatedly rubs against the edge of the guillotine blade causing the cut in the yolk of the third thumb by the right hand'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ database 03 industry sector mining gender male employee type third party critical risk cut year 2017 18th month february day 8 weekday wednesday 5 weekofyear 6 season summer is _ holiday no clean _ description being hours approximately in circumstances that the administrative ssomac was arranged to sometimes move from the guillotine of the right side towards the center of the table back to make cuts of enmicadas pages when trying to raise the guillotine the middle finger of the right handed hand it rubs against the edge of the guillotine blade and causing the cut in when the yolk of both the third finger of the right hand'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 07 industry sector mining gender male employee type third party critical risk cut year 2017 month february day 8 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ wednesday 3 hours approximately in circumstances that the official ssomac was arranged to move the dagger onto the right side towards the center of its table to make cuts of enmicadas pages when trying to raise the guillotine the middle finger of the right hand it pressed against the edge of the lower blade causing the cut in the yolk of the third finger of the right palm'], 'Accident Level': 1}, {'Description': ['country 01 country _ 01 local local _ 03 industry sector primary mining gender type male employee type third party critical risk cut year 2017 month february day 8 weekday wednesday weekofyear 6 season summer is _ holiday no clean _ description being hours approximately in circumstances that the administrative management ssomac was arranged to move the guillotine of the right side towards the immediate center of the table to make cuts of enmicadas pages when trying violently to raise the guillotine the middle finger part of the right left hand it rubs against the edge of the guillotine blade causing the cut in circulation the tooth yolk of the third finger of the right hand'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Employment Sector Mining Gender Male Employee Type Democratic Party Critical Risk Cut Year 2017 Month February Day Monday Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description being hours approximately in circumstances that he administrative ssomac was arranged to move the guillotine of the right side towards front edge of knife blade to causing cuts of several pages when trying to raise the guillotine the middle finger of the right hand it rubs against the edge of the guillotine blade causing the cut in the yolk of the third finger of the right hand'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_03 Mine Industry Sector Mining Location Gender Male Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Day Wednesday WeekofYear June 6 season Summer is_holiday No clean_description being 24 hours approximately in circumstances that the administrative ssomac was arranged to be move the guillotine of the right left side towards the center of the room table to make cuts of enmicadas pages when trying to raise the guillotine the middle finger of the right hand it rubs against the edge of the guillotine blade causing the cut in the yolk of the third finger end of the right hand'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2017 Month January Day 27 Weekday Friday WeekofYear 4 season Summer is_holiday No clean_description being am at times when the collaborator was passing a tubo pvc pipe to the loader to uncover the fifth hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates the air valve causing the loading pipe that was in the floor to rise suddenly throwing prils of anfo excess in pipe on the cheekbone and eyelid of the right eye of the victim', 'Accident Level': 1}, {'Description': ["Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2017 Month January Day 27 Weekday Friday WeekofYear 4 season Summer is _ holiday No clean _ description being am at times when the collaborator was passing a tubo pvc pipe to the loader to discover the five hole that was obstructed by a piece of rock the operator of the jetanol mistakenly activated the air valve, causing the loading pipe, which was located in the ground, to suddenly rise and throw fos in the pipe at the cheek bone and the eyelid of the victim's right eye"], 'Accident Level': 1}, {'Description': {'Description': 'The victim was hit on the cheekbone and eyelid of the right eye of the victim. The operator of the jetanol accidentally activates the air valve causing the loading pipe that was in the floor to rise.'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mixed gender male employee type third party critical risk others year 2017 month january day 27 weekday friday february 4 season summer is _ holiday no clean _ description being am at times when the collaborator was passing a tubo pvc truck to the loader to uncover some drill hole that was obstructed by some piece of rock the operator of the jetanol accidentally activates the air valve causing the loading pipe that stuck in its floor to rise suddenly throwing prils that anfo excess in pipe on the cheekbone and eyelid of the other eye of the victim'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2017 month january graduation day 27 weekday friday weekofyear 4 season 6 summer is _ holiday no clean _ description being am at times when the collaborator was still passing after a tubo pvc pipe to the loader to to uncover into the fifth hole that was obstructed by a piece of rock the remote operator of the jetanol accidentally activates the air valve causing the loading pipe that later was in the floor to rise suddenly throwing prils out of anfo excess in pipe on the cheekbone and right eyelid of the right eye of the victim'], 'Accident Level': 1}, {'Description': ['country country _ 01 business local _ 04 industry sector mining gender male labor type specific sector critical risk others year 2017 month january day 27 weekday friday weekofyear 4 season summer is _ holiday no clean _ description being am at times when the collaborator was passing a tubo loading pipe to scuba loader to uncover the fifth hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates the air valve causing automatic loading pipe that pops in the floor to rise suddenly throwing prils of anfo excess in pipe on the cheekbone and eyelid around the right eye of this victim'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 08 04 industry association sector zero mining gender male employee type third person party critical risk service others year 2017 month january day 27 weekday friday weekofyear 4 season summer is _ holiday no clean _ description being am at times when the collaborator was passing a tubo pvc pipe to the loader to accidentally uncover the fifth leaking hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates hitting the air valve causing the loading pipe that was buried in the floor to rise suddenly throwing prils of anfo excess in pipe on the cheekbone and eyelid of the right eye of causing the victim'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee No Third Party Critical Risk Others Year 2017 01 January Feb 27 Weekday Friday WeekofYear off season Summer is_holiday No other_description being am into it when the collaborator was passing a tubo pvc pipe to the loader to uncover the fifth hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates the air pump causing the loading pipe that was in the floor to rise suddenly throwing prils of anfo excess in pipe on the head and eyelid behind the right eye of the victim'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Operation Critical Risk Others Year 2017 Month January Day 27 Same Weekday Friday 13 WeekofYear 4 season 7 Summer is_holiday No clean_description being am at times when the electric collaborator was passing a tubo pvc pipe to the loader to uncover the fifth hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates the interior air valve causing the loading of pipe that was in the floor to rise suddenly throwing prils of and anfo excess in the pipe on the left cheekbone and eyelid of the right eye of the victim'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month August Day 1 Weekday Monday WeekofYear 31 season Winter is_holiday No clean_description at times when the worker was cleaning the long holes of the production mesh in negative when removing the polyethylene pipe it suffers a clogging inside the drill which product of compressed air pressure is released by ejecting detritus and fragments of rock inside the hole impacting the workers forehead causing a cut', 'Accident Level': 1}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month August Day 1 Weekday Monday Weekday Week Year 31 Season Winter is _ holiday None Clean _ Description at times when the worker negatively cleaned the long holes of the production network when removing the polyethylene pipe, he suffers a blockage in the drill, the compressed air product of which is released by the expulsion of debris and rock fragments inside the hole, which hit the forehead of the workers and cause a cut'], 'Accident Level': 1}, {'Description': {'Description': 'When removing the polyethylene pipe it suffers a clogging inside the drill which product of compressed air pressure is released by ejecting detritus and fragments of rock inside the hole impacting the'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type unknown party critical risk others year 2016 9 august day 1 weekday monday weekofyear 2018 season winter is _ 3 no clean _ description at times when the worker was cleaning the long holes of the production mesh in negative when removing the leaking pipe it suffers a clogging inside the drill which result of compressed air pressure is formed by underground detritus and fragments of rock inside the hole impacting the workers face causing a concussion'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender type male employee type third party critical risk others year 2016 month august day 1 weekday monday weekofyear 31 season winter break is _ a holiday no clean _ description at all times when the worker was still cleaning the long holes of the production mesh in negative when removing the used polyethylene pipe it suffers a clogging inside the drill which product of compressed air pressure is released by ejecting detritus pressure and leaving fragments of rock lying inside the hole impacting the workers forehead causing a surgical cut'], 'Accident Level': 1}, {'Description': ['country 08 _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk 01 year 2016 monday august day 1 april monday weekofyear 31 season winter is _ holiday no clean _ description at times when the worker was cleaning the long holes of the production tool in negative when removing the polyethylene pipe it suffers a clogging inside the drill the product of compressed ambient pressure vapor absorbed by fresh detritus and fragments of rock inside the hole impacting the workers forehead causing a cut'], 'Accident Level': 1}, {'Description': ['country country _ 09 01 local local _ 04 industry 1st sector mining gender male employee type third activity party critical risk others year april 2016 month august day 1 weekday monday weekofyear 31 season winter is _ holiday no longer clean _ description at hazardous times when the worker was cleaning the long holes of connecting the production tube mesh in negative when removing the polyethylene pipe it suffers a clogging fracture inside the drill which product of compressed air pressure is released by ejecting detritus and fragments of rock inside through the hole impacting the workers forehead causing a cut'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Domain Others Year 2016 Main Main Day 1 Weekday Monday WeekofYear 31 season August is_holiday No clean_description at times when the worker was cleaning the long holes of the production surface in negative when removing the polyethylene pipe it suffers in clogging around the drill which product of compressed air pressure is released by any detritus and fragments of equipment inside the well impacting the workers forehead causing a cut'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Year Month September August Day 1 Weekday Monday 2 WeekofYear 31 season Winter is_holiday No clean_description at other times when the worker was cleaning the long holes of the production mesh drill in negative when removing the polyethylene lead pipe it suffers a clogging inside the drill which product of compressed air pressure is released by ejecting detritus powder and fragments consisting of rock inside to the hole air impacting the workers forehead causing a cut'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description the employees mrcio and srgio performed the pump pipe clearing activity fz and during the removal of the suction spool flange bolts there was projection of pulp over them causing injuries', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is _ holiday No clean _ description the workers mrcio and srgio did the pump pipe clearing activity fz and during the removal of the suction coil flanges stud there was projection of pulp over them causing injuries'], 'Accident Level': 1}, {'Description': {'Description': 'The employees mrcio and srgio performed the pump pipe clearing activity fz. During the removal of the suction spool fl'}, 'Accident Level': 1}, {'Description': ['country 1999 _ 02 local level _ in industry sector mining gender male employee type employee critical risk projection year 3 month may day is weekday saturday weekofyear 18 season autumn is _ holiday no clean _ description the employees mrcio and srgio performed the entire pipe clearing operation fz and during extensive removal of new suction spool flange bolts there was projection of pulp over them causing and'], 'Accident Level': 1}, {'Description': ['country country _ 02 school local activities local _ activity 07 industry sector mining gender male employee type employee critical risk projection year 2017 month may day 6 weekday summer saturday weekofyear 18 harvest season autumn is _ 17 holiday no clean _ description the employees mrcio and srgio performed the pump pipe clearing activity fz and o during the removal ritual of the suction pump spool pipe flange bolts there was projection of pulp over them causing injuries'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 07 industry sector mining gender male employee type employee critical compensation projection year 2017 month may day 6 weekday saturday may 18 season autumn is _ holiday no clean _ description the drilling compensation drilling crew performed the pump pipe clearing activity fz and during the removal of the hydraulic spool flange bolts who was dumping of pulp over them preventing injuries'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 07 industry industry sector mining gender male employee type employee critical annual risk projection year 2017 month 4th may day 6 weekday saturday weekofyear 18 season autumn is _ 07 holiday no clean _ description the employees mrcio and srgio performed the local pump load pipe clearing activity fz drill and during the removal of the suction spool flange from bolts there was was no projection of pulp over them causing injuries'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Organization_07 Industry Agriculture Mining Gender Population Employee Type Employee Critical Risk Projection Year 2017 Month May Monday 6 Weekday 4 WeekofYear 18 season Autumn Sunday_holiday No clean_description the employees return and we performed the pump pipe clearing activity fz and on the removal of the suction spool flange bolts there was projection of pulp over concrete causing injuries'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_07 Industry Sector Contract Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Total Saturday WeekofYear 18 Special season 0 Autumn is_holiday 2 No clean_description the employees mrcio workers and srgio to performed of the pump pipe clearing after activity fz and during the removal of the suction spool or flange bolts there was projection of pulp over them causing injuries'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is_holiday No clean_description while preparing to mount polypropylene tubing the employee pulled the pickup from the truck and positioned it in place pressing the finger between the tube and the concrete wall', 'Accident Level': 1}, {'Description': ['Country Country _ 02 Local _ 08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is _ holiday No clean _ description while preparing to assemble polypropylene hoses, the employee pulled the pickup from the truck and positioned it in place by pressing his finger between the pipe and the concrete wall'], 'Accident Level': 1}, {'Description': {'Description': 'While preparing to mount polypropylene tubing the employee pulled the pickup from the truck and positioned it in place pressing the finger between'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ mining industry sector metals gender male employee type employee critical risk pressed year 2017 25 february may 13 weekday monday weekofyear 7 season summer is _ holiday to clean _ sweep while preparing to mount polypropylene tank an employee pulled some pickup from the truck and positioned it in place pressing his finger between the tube and broken concrete wall'], 'Accident Level': 1}, {'Description': ['country country _ 02 city local local _ 08 manufacturing industry sector scrap metals employee gender male employee type employee critical risk pressed year 2017 month february 2017 day 13 weekday monday weekofyear 7 season day summer is _ holiday in no clean _ description while preparing to mount polypropylene spray tubing device the pregnant employee pulled the pickup from the truck and positioned it in place pressing the finger between the tube and the concrete wall'], 'Accident Level': 1}, {'Description': ['country c _ 02 local local _ health industry sector unknown gender male employee type zero critical recruitment pressed year 2017 month february day 13 weekday monday weekofyear 7 season summer is _ holiday no clean _ description while preparing test mount polypropylene tubing the employee pulled the pickup from the truck personally called it the place for the finger between the tube and the concrete wall'], 'Accident Level': 1}, {'Description': ['country country _ group 02 local 96 local _ 08 industry sector supplier metals gender male employee type employee critical risk pressed year 2017 month february day 13 year weekday monday weekofyear 7 season summer 2016 is _ 21 holiday no clean _ description while preparing to mount polypropylene concrete tubing the employee pulled the pickup from the truck and positioned it in place while pressing precisely the finger between the plastic tube and the concrete wall'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Female Male Employee Females Employee Critical Matter Pressed Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer End_holiday For clean_description while preparing top mount polypropylene tubing the team pulled first pickup from the wall and positioned it in place pressing the finger between top tube and the concrete wall'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Gender Male female Employee Gender Type Employee Location Critical Risk Pressed Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 Labor season Summer is_holiday No clean_description while preparing tools to mount polypropylene tubing the employee pulled down the pickup from the truck and then positioned it carefully in place pressing the finger between the new tube and the concrete wall wall'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Projection/Burning Year 2017 Month January Day 8 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description employee performed withdrawal of electrical failure in the engine control drawer of the tq a after the check and exchange of fuses it closed the door of the drawer and energized the drawer at this moment an arc was opened reaching the face and part of the employees forearm causing minor burns', 'Accident Level': 1}, {'Description': ['Country Country Country Country City 05 Sector Metals Gender Male Employee Type Employee Critical Risk Forecast / Combustion Year 2017 Month January Day 8 Weekday Sunday Weekend Year 1 Season Summer is Vacation No Clean Description Employees performed the return of the electrical defect in the engine control drawer of tq a after the drawer door had been closed and fuses replaced, and activated the drawer at that moment when an arc was opened that reached the face and part of the forearm of the employee and caused slight burns'], 'Accident Level': 1}, {'Description': {'Description': 'An arc was opened reaching the face and part of the employees forearm causing minor burns. An employee performed withdrawal of electrical failure in the engine control drawer of the tq a.'}, 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector as with male employee type employee critical risk exposure / burning year 2017 month january day 8 weekday sunday weekofyear 1 season summer is _ holiday no clean _ description employee performed withdrawal for electrical service in an engine control drawer of the tq a after boiler fire and exchange of fuses it closed the door of the drawer and energized the drawer at this fire an arc was seen reaching the face and part of the employees forearm causing minor burns'], 'Accident Level': 1}, {'Description': ['china country country _ 02 local local local _ 05 industry sector metals gender male employee type employee critical risk projection / burning by year 2017 month january day 8 weekday saturday sunday weekend weekofyear may 1 cold season summer is _ holiday no holiday clean _ description employee performed withdrawal of electrical failure in the engine control drawer of the tq a after the check and exchange of fuses it closed the back door of the drawer and energized the drawer at this moment an arc was opened reaching the face and part of the employees forearm head causing minor burns'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector metals gender male employee type for critical risk projection / burning year 2016 month january day 8 weekday sunday may 1 · summer season _ holiday no clean _ description employee performed removal of electrical failure at the battery control drawer of the tq a after the check and exchange of fuses it blew the door from the drawer and energized the drawer at this moment an arc was opened reaching the face and part of the employees forearm causing minor burns'], 'Accident Level': 1}, {'Description': ['country country _ 02 local local _ 05 industry sector metals 2nd gender male employee notification type employee critical risk projection / burning year 2017 month 20 january day 8 weekday sunday weekofyear 1 season 2010 summer is _ holiday no 9 clean _ 00 description employee performed complete withdrawal of electrical failure in the engine control drawer of the tq a after the check and exchange of fuses it closed the door of the drawer and energized around the drawer at this moment an arc was opened reaching the face and part of lining the employees exit forearm causing minor burns'], 'Accident Level': 1}, {'Description': ['Country Country_02 Local Local_05 Industry Energy Metals Gender Male Employee Job Category Critical Risk Projection/Burning Year 2017 Month January Day 8 Weekday Sunday WeekofYear Regular season Summer is_holiday No clean_description employee at withdrawal resulting electrical failure in the engine control compartment of the tq a after the check and exchange of fuses it closed the door of the drawer and energized the drawer at this moment an arc was shot breaking the face and part of two employees forearm causing minor burns'], 'Accident Level': 1}, {'Description': ['Country Country_02 Area Local Local_05 Industry Sector Transport Metals Gender Male Employee Type Employee Critical Risk Projection/Burning Year 2017 Month January Day 8 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description employee performed withdrawal of an electrical failure in to the engine control drawer of the tq a minute after the check and exchange of fuses as it closed the door of the controls drawer and completely energized the drawer at this moment an arc was wide opened reaching the face and part of the employees forearm causing very minor burns'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month October Day 1 Weekday Saturday WeekofYear 39 season Spring is_holiday No clean_description being am approximately in the maintenance workshop of the ee unicon in circumstances that two mechanical technicians placed the protective plate kg of the mixkret fuel tank at the moment of attempting to bolt this protective plate it slips from the hands of one of them falling directly on the instep of the left foot causing the injury described', 'Accident Level': 1}, {'Description': ['Country Country Country Country Country Region Region 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month October Day 1 Weekday Saturday Weekday Week Year 39 Season Spring is Holiday No Clean Description I am approximately in the maintenance workshop of ee unicon in the situation that two mechanics placed the protective plate kg of the mixkret fuel tank at the moment of trying to screw this protective plate when it fell directly on one of them on the instep of the left foot and caused the described injury'], 'Accident Level': 1}, {'Description': {'Description': 'The injury occurred in the maintenance workshop of the ee unicon in circumstances that two mechanical technicians placed the protective plate kg of the mixkret fuel tank at the moment of attempting to bolt this protective plate'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month october day 1 weekday saturday weekofyear 39 summer holiday weather _ holiday no clean _ description 1 am approximately in the maintenance workshop of the ee unicon in circumstances that two mechanical technicians placed the protective 28 kg of the mixkret fuel tank near the moment of motion to bolt this heavy plate and slips from the hands of one of them falling directly on lateral instep of the left foot causing the injury described'], 'Accident Level': 1}, {'Description': ['country 2000 country _ 01 local local _ 04 industry sector mining gender male employee type third class party critical of risk others year 2016 month october day 1 weekday saturday weekofyear 39 season spring is _ holiday no clean _ description being am approximately in the maintenance workshop of 3 the ee unicon in circumstances that two mechanical technicians accidentally placed the protective plate kg of the mixkret fuel tank at near the same moment of attempting to bolt this protective plate it slips from the hands of... one of these them falling directly on the instep of the left foot causing the injury was described'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector 6th gender male employee · third party critical risk others year 2016 month october day 1 weekday saturday weekofyear 2015 season 2017 is _ holiday no clean _ description being am approximately in the maintenance portion of the ee unicon in circumstances that two mechanical technicians inspect the protective 120 kg of the mixkret fuel tank at the moment after attempting to bolt this protective plate it slips from the hands of one of machinery falling directly on the instep of the brake foot causing the injury described'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 agricultural industry sector mining gender male employee type third party critical risk occupational others year 2016 • month october copyright day 1 weekday saturday weekofyear 39 season spring is _ holiday no clean _ description being am approximately in the maintenance workshop of the ee unicon in circumstances that two maintenance mechanical technicians placed the protective plate kg of the mixkret fuel tank at the moment of attempting to bolt this protective plate it slips from the hands of one of them falling horizontally directly vertically on the instep plate of the left foot device causing cause the injury described'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Type Employee Type Third Party Critical Risk Others Year 2016 Month October Day 1 Weekday Saturday September 39 season Spring Fall_holiday No clean_description being am approximately in the maintenance workshop of the ee unicon these circumstances that two mechanical technicians placed the protective side kg of the mixkret fuel tank that the moment Im attempting to bolt this protective piece it slips from the hands of one of them falling directly on her instep of the left ankle causing the injury described'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Week Year 2016 Month October Day 1 Weekday Saturday WeekofYear 39 current season Spring is_holiday April No more clean_description being am approximately in by the maintenance workshop of the ee unicon in circumstances such that two young mechanical technicians placed the protective plate kg of the mixkret fuel tank at the moment of attempting to bolt this protective plate it slips aside from the hands of one of them falling directly in on the instep of the left foot causing them the injury described'], 'Accident Level': 1}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 3 Weekday Friday WeekofYear 22 season Autumn is_holiday No clean_description during the field trip on lt of the lajes target junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the right foot at the time of the accident the employee was using all the ppe required for the activity and had his hands free the employee was taken to the hospital where he went through medical care and was released to return to his activities the next day of work', 'Accident Level': 1}, {'Description': ['Country Country Country 3 Local 10 Industries Other Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 3 Weekday Friday Weekday Weekday Week Year 22 Season Autumn is Vacation No Clean Description During the excursion to lt des lajes target junior da Costa official stepped on a wooden stump which was on the ground about cm, which pierced his boot injury on the sole of his right foot at the time of the accident The employee used all the lip necessary for the activity and had his hands free The employee was taken to the hospital where he underwent medical treatment and was discharged to resume his work the next day'], 'Accident Level': 1}, {'Description': {'Description': 'A junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the right foot. The employee was taken to the hospital where he went through medical care and was released to return to his activities the next'}, 'Accident Level': 1}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type third party risk risk others year 2016 2nd june day 3 weekday friday weekofyear 22 season autumn is _ holiday no clean _ description during the field trip on lt of diego lajes target junior da costa official stepped on a wooden stump that was on the ground approximately cm long removed his boot from the sole beneath the right foot at the time of the accident the visitor was using all the ppe required for the activity and had his hands free the employee was taken to the hospital where he went towards medical care and was released to return to community activities the next day of work'], 'Accident Level': 1}, {'Description': ['major country country _ category 03 local local _ 10 industry sector others gender male employee type unknown third party critical risk others year 2016 fiscal month june day 3 weekday friday weekofyear 22 season autumn is _ holiday no clean _ description photo during the field trip on lt 9 of 2003 the lajes target junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the right foot at the time of the accident the employee damage was using away all the ppe required for the activity and had his hands free the employee injured was taken to the hospital where he went through medical care and was released to return to his activities the next day of work'], 'Accident Level': 1}, {'Description': ['country country _ 03 • local _ 10 industry sector neutral gender male employee type third party critical organisation others year 2016 month june day 3 weekday friday weekofyear 22 season 16 is _ holiday no clean _ description during the field trip on lt of the lajes employees junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the right foot at the end of the accident its employee was using all the ppe required for the activity and had his hands free the employee was taken to the hospital where he went through medical care and later released to return to his activities the actual day of safety'], 'Accident Level': 1}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender identification male employee type third party critical risk occupational others year 2016 month june day 3 weekday friday weekofyear 22 season autumn is _ holiday no clean _ description during the field trip on lt of the lajes target junior junior da costa a official stepped on a wooden stump that was on off the ground approximately cm which pierced his boot wounding the sole of the right foot at the time of the accident the employee was using all the ppe tools required materials for the activity and therefore had his hands free the employee was taken to the hospital where he went through medical rehabilitation care and was officially released to return to his activities the next day of work'], 'Accident Level': 1}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Other Type Third Party Critical Risk Others Year 2016 Month June Day 3 Weekday Friday WeekofYear 22 December Autumn is_holiday No clean_description during the field trip on lt of the lajes target junior da costa official stepped on a wooden stump that was on wet ground approximately cm which pierced his boot wounding the sole of the right foot at the time until the accident the employee experienced using all the ppe tools for this activity and had his hands burned the employee was taken too the hospital where he went through medical care and was released to return to his activities the next day without work'], 'Accident Level': 1}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 15 Month June 21 Day 3 Weekday Friday WeekofYear 22 season Autumn 1 is_holiday No clean_description during the field trip on lt of the lajes target junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the required right foot at the time of the accident luckily the employee was using all the ppe required for the activity and had just his hands free the employee involved was taken to the hospital where he promptly went through medical care and was released to gradually return to his activities with the next day of work'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month December Day 23 Weekday Friday WeekofYear 51 season Summer is_holiday No clean_description when performing the movement of the bar to make room and place a calibrator mr chuquillanqui pushes the bar with both hands turning it being at that moment imprisoned the middle finger of the left hand against the other bar that was ahead', 'Accident Level': 1}, {'Description': ['Country Country Country Country Country Country Country Country Country Industry Mining Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month December Day 23 Day of the Week Friday Day Year 51 Season Summer is Vacation No neat description in executing the movement of the bar to make room and place a calibrator Mr. Chuquillanqui pushes the bar with both hands, turning it at that moment with the middle finger of the left hand against the other bar that was in front of him'], 'Accident Level': 1}, {'Description': {'Description': 'Mr. Chuquillanqui uses the bar to make room to place a calibrator. He pushes the bar with both hands turning it being at that'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local language _ 04 industry specific mining gender male employee type third party critical risk others year 2016 june 15 may 23 weekday friday weekofyear 51 season summer working _ holiday no clean _ description when performing the movement of the bar to make room and place a calibrator mr chuquillanqui raised the bar with the hands until it being at that moment imprisoned the middle finger of the left hammer against the other bar that was ahead'], 'Accident Level': 1}, {'Description': ['country country _ • 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year for 2016 month december day 23 weekday friday 30th weekofyear 51 season summer is _ holiday and no clean _ out description when successfully performing the movement of the bar to just make more room and place a calibrator mr chuquillanqui pushes the bar with both hands turning it being at that moment imprisoned the middle finger palm of the left hand against the other bar that was looking ahead'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender specific employee type third party critical risk others year 2016 month december day 23 weekday saturday evening 51 december summer is _ holiday 2016 clean _ description when performing the movement of the bar to changing room and place a calibrator mr chuquillanqui occupying the bar with both hands turning it being at that moment imprisoned his index finger of the left hand against the other bar owner was ahead'], 'Accident Level': 1}, {'Description': ['by country country _ 01 local local _ 04 industry sector limited mining gender male employee type third party critical risk others year in 2016 month december day notice 23 weekday friday weekofyear 51 season summer is _ holiday no clean _ description when casually performing the movement of the bar to make room and place a calibrator mr chuquillanqui pushes the bar with both hands turning about it whilst being at that moment properly imprisoned the middle finger of the erect left hand leaned against the other bar that was ahead'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Business Employee Type Third Party Critical Risk Others Year 2016 December December Day 23 Hours Friday WeekofYear 51 season Summer is_holiday No clean_description when performing the movement of the bar to make room and place a calibrator or chuquillanqui pushes the bar with both hands turning it upwards since that moment imprisoned the middle finger of the left leaned against his open bar and was ahead'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Currency Industry Sector Mining Gender Male Employee Type Third Base Party Critical Risk Others Year 2016 May Month December Day 23 Year Weekday Friday 15 WeekofYear 51 season Summer is_holiday No clean_description when performing the movement of the bar to make room and place a calibrator mr chuquillanqui pushes the first bar with both his hands while turning it being at that tender moment imprisoned the middle finger of the left hand against the other bar that it was ahead'], 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 30 Weekday Wednesday WeekofYear 13 season Summer is_holiday No clean_description being approximately pm on the level cx bp in circumstances that the workers of the company rock performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant cristian injured made the adjustment of the nut of the central bolt with the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning of the clamp pin at that moment the frame is slid by pressing the thumb of the assistants left hand against the stilson key causing the described injury due to the lack of securing the frame fixing bolts', 'Accident Level': 1}, {'Description': ['Country Country Country Country Location Location 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month March Day 30 Weekday Wednesday Weekday Wednesday Week Year 13 Season Summer is Holiday No clean description is approximately p.m at the level cx bp injured in the circumstances that the workers of the company rocks the anchoring of the central pin for the anchoring of the drill diamantina xrd bob cat the wizard Cristian made the adjustment of the nut of the central bolt with the stem key no simultaneous jump out of the control panel made the movement of the rotary unit for the positioning of the clamping pin at that moment the frame by pressing the thumb of the wizard left against the stem key causes the described injury due to the lack of securing the frame fixing pin'], 'Accident Level': 1}, {'Description': {'Description': 'Workers of the company rock performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat. The assistant cristian injured caused the described injury due to the lack of securing the frame fixing bolts.'}, 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 rural sector mining gender male employee type third party critical risk others year 2016 month march day 30 weekday wednesday weekofyear 13 season summer is _ holiday no clean _ description being approximately pm on the level cx bp in circumstances where the workers working the table rock performed the anchorage of the central pin for the anchoring in the drilling field diamantina xrd bob cat the assistant cristian injured causing the adjustment of the nut of the central bolt with the drill key no simultaneously jose from the control panel made the movement of its rotation unit for the positioning of the clamp pin at that moment its frame is slid by pressing the thumb of the assistants left hand against the stilson key causing the described injury due to the lack of securing the frame fixing bolts'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party environment critical risk others year 2016 month march 18 day 30 weekday wednesday weekofyear 13 season summer is _ holiday no clean _ description being approximately pm on the level cx bp in circumstances that the workers of the company rock haven performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant cristian injured made the adjustment of adjusting the nut release of the same central bolt with securing the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning of the clamp center pin at that moment the frame is slid by pressing the thumb of the two assistants left hand against the stilson key causing the described injury due to the lack of securing the frame fixing additional bolts'], 'Accident Level': 1}, {'Description': ['• mix _ 01 · local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month march day 30 weekday wednesday weekofyear spring season summer is _ holiday no date _ description being approximately pm on the level cx bp in 1995 that the workers of the company manually performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant cristian injured made the adjustment of the nut securing the central bolt with the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning of the clamp pin so that moment the frame is slid by pressing the thumb of the assistants left hand against the lock key causing the described injury due to the lack of securing the frame fixing bolts'], 'Accident Level': 1}, {'Description': ['country country _ 01 local local _ 08 04 industry sector mining gender male employee type third party critical risk others year 2016 month 4 march day 30 weekday wednesday weekofyear 13 season summer is _ holiday no clean _ description y being approximately pm on the level cx bp in circumstances indicating that the workers crane of the company rock performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant cristian turner injured made the adjustment of the nut of the central bolt with the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning aspect of the clamp pin at that moment the frame is slid by pressing the thumb of the drill assistants left hand against placing the stilson key key causing the described injury due to the lack of securing the frame fixing bolts'], 'Accident Level': 1}, {'Description': ['Country Country_01 Country Location_04 Social Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 30 Weekday Wednesday WeekofYear 13 season Summer is_holiday No clean_description This approximately pm on the level cx bp in circumstances that the workers of the company rock performed the anchorage of any central pin for the anchoring of diamond drilling machine diamantina xrd bob cat the assistant cristian injured made the adjustment of the nut of the central bolt with the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning of the clamp pin at that moment the frame is slid by pressing the thumb of the assistants left hand against the stilson key causing force described injury due to permanent lack of the two frame fixing bolts'], 'Accident Level': 1}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Third Party Critical Risk Others Year 2016 Month March Day 30 Weekday Wednesday WeekofYear 13 season Summer is_holiday No clean_description There being approximately 10 pm on the level cx 40 bp in circumstances that the workers of the company rock performed the anchorage of the central clamp pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant with cristian injured made the adjustment motion of the nut of the central bolt with the stilson key no simultaneously jose from the electronic control panel made the movement of the mechanical rotation unit for the positioning of the clamp pin at that moment the frame is slid by severely pressing the thumb of the assistants left hand against the stilson key causing the described injury due to the lack of securing the frame fixing bolts'], 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month December Day 9 Weekday Friday WeekofYear 49 season Summer is_holiday No clean_description during the withdrawal of the metal form support screw in the inside of well when the bolt of the chain holder was loosened the employee and a helper exerted force on the combination wrench when the bolt came to loosen immediately pressing the ring finger of the employees right hand against the support', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description the injured collaborator and one of his colleagues wanted to move a rim of a scoop tire for which using their own strength they threw the rim to the floor to make it roll and in that instant the eyelash hits the fifth finger of the right hand against the ring producing the injury', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Projection Year 2017 Month June Day 17 Weekday Saturday WeekofYear 24 season Autumn is_holiday No clean_description when the master additive was taken from the afo license plate towards the launching team no the collaborator bonifacio robot assistant at the moment he received the bucket emptiness of the operator enoc feels that he drops a drop of additive in the right eye feeling a burning sensation so he immediately goes to wash the affected eye in the teams eyes then the collaborator is evacuated to natclar at the time of the accident the employee had glasses but he was not using them correctly', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 23 Weekday Sunday WeekofYear 42 season Spring is_holiday No clean_description in the activity of loading of explosives in front of level gts there was a fall of a rock fragment reaching right arm of the blaster causing a cutblunt', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressurized Systems / Chemical Substances Year 2016 Month April Day 22 Weekday Friday WeekofYear 16 season Autumn is_holiday No clean_description the employee reports that he placed the air lance in the tank and then opened the manual air valve and projection of acid solution heated toward him reaching the front of the left thigh', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month June Day 24 Weekday Saturday WeekofYear 25 season Autumn is_holiday No clean_description the injured and his collaborators at the time of making the hdpe pipe which was to be used for hydraulic filling is released causing one of the ends of the pipe to impact on the lip causing an injury apparently the support deconcentrates and releases a little the pipe this action generates that the pipe presented with the rubber of the victalica copla is released generating the impact previously described the pipe was empty without hydraulic load', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month September Day 21 Weekday Wednesday WeekofYear 38 season Spring is_holiday No clean_description employee was preparing rice using a utensil type skimmer to stir inside the pressure cooker when part of the cable broke reaching its hand causing a blunt cut', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 10 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description while aligning the right bracket of tower n when releasing the tension applied by the tirford of tn when pushing the lever towards the tension release point it returns by mechanical effect overcoming the resistance of the lineman operator and reshaping the the hands of the assistant beating the assistant in the frontal region', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Female Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month August Day 30 Weekday Tuesday WeekofYear 35 season Winter is_holiday No clean_description during the execution of the area cleaning activity using a hoe the employee hit against a fixed metal structure in the area coming to reach the abdomen on the left', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Individual protection equipment Year 2017 Month March Day 10 Weekday Friday WeekofYear 10 season Summer is_holiday No clean_description in the nv chamber of accumulation of aggregates when the worker made the cast of shotcrete towards the crown of the work at pm he perceives discomfort and fogging of the full face then decides to take it off and chooses to use only his safety glasses for comfort to continue with the thrown shotcrete at pm suffers the projection of shotcrete rebound particles in the left eye', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month July Day 27 Weekday Wednesday WeekofYear 30 season Winter is_holiday No clean_description at times when the mill operator proceeded to remove the vitaulic flange connecting the suction pipe to the pump housing b with the intention of desanding the system when removing the flange the mineral pulp comes out under pressure and impacts on the face and wrist of his left hand generating the lesion described at the time of the accident both the secondary mill no and the pumps a and b were blocked for maintenance work and the mill operator used his safety glasses', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month October Day 13 Weekday Thursday WeekofYear 41 season Spring is_holiday No clean_description employee assisted in the support of the gate while the other the tying of the canvas in the frame and by pressing the rope so that the canvas stretched the metal structure moved coming out of the wooden support falling and striking against the employees face causing a cut in the right superciliary', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressurized Systems Year 2016 Month September Day 16 Weekday Friday WeekofYear 37 season Spring is_holiday No clean_description employee reports that he was monitoring the existence of a borehole of a tubing in the thermal recovery boiler of the ustulation area through the side window when he was struck by projection of heated air that reached his face and right forearm', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk remains of choco Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description in the area of lloclla meters from the substation nro under circumstances that the worker was preparing to pick up the rope from the floor several fragments of rock slide down the slope of the hill one of the cm fragments of diameter approximately impacts the face of the worker producing the aforementioned injury', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Cut Year 2017 Month February Day 8 Weekday Wednesday WeekofYear 6 season Summer is_holiday No clean_description being hours approximately in circumstances that the administrative ssomac was arranged to move the guillotine of the right side towards the center of the table to make cuts of enmicadas pages when trying to raise the guillotine the middle finger of the right hand it rubs against the edge of the guillotine blade causing the cut in the yolk of the third finger of the right hand', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2017 Month January Day 27 Weekday Friday WeekofYear 4 season Summer is_holiday No clean_description being am at times when the collaborator was passing a tubo pvc pipe to the loader to uncover the fifth hole that was obstructed by a piece of rock the operator of the jetanol accidentally activates the air valve causing the loading pipe that was in the floor to rise suddenly throwing prils of anfo excess in pipe on the cheekbone and eyelid of the right eye of the victim', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month August Day 1 Weekday Monday WeekofYear 31 season Winter is_holiday No clean_description at times when the worker was cleaning the long holes of the production mesh in negative when removing the polyethylene pipe it suffers a clogging inside the drill which product of compressed air pressure is released by ejecting detritus and fragments of rock inside the hole impacting the workers forehead causing a cut', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description the employees mrcio and srgio performed the pump pipe clearing activity fz and during the removal of the suction spool flange bolts there was projection of pulp over them causing injuries', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is_holiday No clean_description while preparing to mount polypropylene tubing the employee pulled the pickup from the truck and positioned it in place pressing the finger between the tube and the concrete wall', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Projection/Burning Year 2017 Month January Day 8 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description employee performed withdrawal of electrical failure in the engine control drawer of the tq a after the check and exchange of fuses it closed the door of the drawer and energized the drawer at this moment an arc was opened reaching the face and part of the employees forearm causing minor burns', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month October Day 1 Weekday Saturday WeekofYear 39 season Spring is_holiday No clean_description being am approximately in the maintenance workshop of the ee unicon in circumstances that two mechanical technicians placed the protective plate kg of the mixkret fuel tank at the moment of attempting to bolt this protective plate it slips from the hands of one of them falling directly on the instep of the left foot causing the injury described', 'Accident Level': 1}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 3 Weekday Friday WeekofYear 22 season Autumn is_holiday No clean_description during the field trip on lt of the lajes target junior da costa official stepped on a wooden stump that was on the ground approximately cm which pierced his boot wounding the sole of the right foot at the time of the accident the employee was using all the ppe required for the activity and had his hands free the employee was taken to the hospital where he went through medical care and was released to return to his activities the next day of work', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month December Day 23 Weekday Friday WeekofYear 51 season Summer is_holiday No clean_description when performing the movement of the bar to make room and place a calibrator mr chuquillanqui pushes the bar with both hands turning it being at that moment imprisoned the middle finger of the left hand against the other bar that was ahead', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 30 Weekday Wednesday WeekofYear 13 season Summer is_holiday No clean_description being approximately pm on the level cx bp in circumstances that the workers of the company rock performed the anchorage of the central pin for the anchoring of the drilling machine diamantina xrd bob cat the assistant cristian injured made the adjustment of the nut of the central bolt with the stilson key no simultaneously jose from the control panel made the movement of the rotation unit for the positioning of the clamp pin at that moment the frame is slid by pressing the thumb of the assistants left hand against the stilson key causing the described injury due to the lack of securing the frame fixing bolts', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 29 Weekday Tuesday WeekofYear 48 season Spring is_holiday No clean_description during the exchange of the shockbearing housing the employee used a sledgehammer to hit the pipe at this stage of the activity the hammer hit the stepladder that was very close coming to hand tool to be projected onto the left hand thumb which was holding the piece', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month May Day 3 Weekday Tuesday WeekofYear 18 season Autumn is_holiday No clean_description being pm approximately in the nv cx mr kevin helper of jumbo removed the drill rod that was in the drilling hole instants that breaks the chain of subjection of the table of the drilling machine sliding down achieving rubbing the index finger of the left hand causing the injury', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month October Day 8 Weekday Saturday WeekofYear 40 season Spring is_holiday No clean_description at the offices of incimmet in circumstances that an environment was being set up to place cleaning materials a wooden strip was placed between the staircase structure and the container this strip was not cut to size so the accident victim he coordinated with his partner to put it under pressure using a hammer while holding with his right hand the frame this pressure placed strip pushed to that side of the container creating an opening between the corrugated iron and the wall at that time continuing to hit the ribbon this falls causing the wall of the container to return to its initial position pressing the tip of the little finger of the right hand against the corrugated iron causing the accident', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month May Day 25 Weekday Wednesday WeekofYear 21 season Autumn is_holiday No clean_description during the tests of the soft starter of the engine of belt the collaborator igor moves around the site and at approximately pm falls into a trench for electric cables m deep the same as was found partially discovered', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk remains of choco Year 2017 Month February Day 7 Weekday Tuesday WeekofYear 6 season Summer is_holiday No clean_description in level op the worker performed the chuteo ore from the hopper to the second car perceived a slip of water and mud through the hopper decided to leave the platform and when he was already down the second rung of the ladder of access the water increases and a fragment of rock slides and hits the back of the worker causing it to fall and hit the right forearm and left knee', 'Accident Level': 1}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 10 Weekday Thursday WeekofYear 10 season Summer is_holiday No clean_description when accessing the santa do novo area in order to open the chop general was moving ahead of the team in order to open access for manetometer when he came across an area with a steep slope and gravel presence in a certain place of access the employee slipped coming with this to become unbalanced at that moment the machete that was in his left hand came to slip the right leg above the knee causing a cut cm', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party (Remote) Critical Risk Chemical substances Year 2016 Month March Day 14 Weekday Monday WeekofYear 11 season Summer is_holiday No clean_description during the discharge of waste the operator proceeds to remove a bag that was under the hose rolled in this circumstance one of the ends of the hose moves in the direction of the face of the driver projecting the liquid contained in it and impacting it on the ear and part of the face', 'Accident Level': 1}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month February Day 16 Weekday Tuesday WeekofYear 7 season Summer is_holiday No clean_description when using the griff wrench to unscrew the rod from the probe the key came to move by pressing the employees finger against the probe', 'Accident Level': 1}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month December Day 31 Weekday Saturday WeekofYear 52 season Summer is_holiday No clean_description being approximately pm alpha operator mr ronald was heading to mine when he decides to stop the equipment to accommodate the lights left side manipulating the support of the lighthouse catching his fifth finger of the right hand with the protection grid and support', 'Accident Level': 2}, {'Description': ['Country Country Country Country Country Region Region Region 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month December Day 31 Day of the Week Saturday Day of the Week Day Day Year 52 Season Summer is Vacation No Clean Description Since about pm Alpha Operator Mr Ronald was on his way to me when he decides to stop the equipment to accommodate the lights on the left side by manipulating the support of the lighthouse, catching his fifth finger of the right hand with the guard and the support'], 'Accident Level': 2}, {'Description': {'Description': ' alpha operator mr ronald was heading to mine when he decides to stop the equipment to accommodate the lights left side manipulating the support of the lighthouse catching his fifth'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry organization mining gender group employee type third party critical risk others year 2016 month december day 2 weekday saturday weekofyear 52 season 2 long _ holiday no clean _ description being approximately pm alpha operator mr ronald was heading to mine when ronald decides to stop the equipment to accommodate 3 lights left side manipulating the support of the frame catching his fifth finger of the right hand as a protection grid and support'], 'Accident Level': 2}, {'Description': ['education country level country _ 01 local local _ 04 industry sector mining gender type male employee type third opposition party critical risk others year 2016 month december day 31 weekday saturday 7 weekofyear 52 season summer is _ holiday no clean _ description in being unknown approximately pm alpha operator mr ronald was heading to gold mine when he decides to stop the equipment set to accommodate the lights left side manipulating the support column of the lighthouse catching his fifth finger of the right hand with the protection grid and support'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 medium sector mining gender male discrimination type third party critical risk others year 2016 month december day 31 weekday saturday weekofyear holiday season summer is _ holiday no holidays _ description being 08 pm mine operator mr ronald was heading to mine when he decides to stop the equipment to remove the lights left side manipulating the support of the manager catching his fifth finger of her right hand with the sensor grid and support'], 'Accident Level': 2}, {'Description': ['country 02 country _ 01 local local _ 04 industry sector occupations mining gender male employee type third party party critical risk others year 2016 month 16 december day 31 weekday saturday weekofyear 52 season summer is _ monday holiday no thursday clean _ description monday being approximately pm alpha day operator mr ronald was heading closer to mine when he decides to stop the equipment required to accommodate the lights left side manipulating the support of the lighthouse catching his fifth finger of the right hand with the protection grid and support'], 'Accident Level': 2}, {'Description': ['Country Country_01 Class Local_04 Industry Sector Sect Gender Male Employee Female Third Party Critical Environment Others Year 1 Month December Day Labor Weekday Saturday WeekofYear 52 season Summer is_holiday No clean_description being approximately pm alpha operator mr ronald was heading in mine when he forgot to stop the equipment to accommodate fire lights left side manipulating the curve of the lighthouse catching his fifth finger of the right hand with the protection grid and support'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Industry Critical Risk Others Year Summary 2016 Month December Day 31 Weekday Saturday WeekofYear 52 season Summer is_holiday No clean_description being approximately pm alpha operator mr ronald was heading to mine when something he decides the to stop with the equipment to accommodate the lights left side before manipulating the mechanical support of the lighthouse catching his finger fifth finger of the right hand with the the acoustic protection grid and support'], 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2017 Month June Day 19 Weekday Monday WeekofYear 25 season Autumn is_holiday No clean_description during the execution of the task of assembling the box of testimony boxes in the area of bonsucesso around am orlando research driller geosol trying to fit two parts of the trestles a third piece fell on his hand which was on the piece he held causing a small trauma to his left thumb the employee was referred to so lucas hospital paracatu ltda and attended and released without leaving work soon after', 'Accident Level': 2}, {'Description': ['Country Country Country Country Country Location 10 Sector Other Sex Male Employee Type Third Party Critical Risk Other Year 2017 Month June Day 19 Weekday Monday Weekday Week 25 Season Autumn is Vacation No neat description during the execution of the task of assembling the box with witness boxes in the area bonsucesso around at the orlando research drill Geosol tried to fit two parts of the trestles a third piece fell on his hand, which was located on the piece he was holding, causing a small trauma to the left thumb the employee was referred to so lucas hospital paracatu ltda and visited and dismissed without leaving work soon thereafter'], 'Accident Level': 2}, {'Description': {'Description': 'A third piece fell on his hand causing a small trauma to his left thumb. The employee was referred to so lucas hospital paracatu ltda and attended and released without leaving work soon after.'}, 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type of party critical risk others year 2017 month june day 19 weekday 20th weekofyear 25 season autumn is _ september no clean _ description and the execution of the task of assembling the box of testimony boxes in the area of mines around am orlando research operations geosol trying to fit two versions of the trestles a third box fell on his hand which was on the piece not held causing a small trauma to his left thumb the employee was sent to so lucas hospital paracatu ltda and attended and released without leaving work soon after'], 'Accident Level': 2}, {'Description': ['country country _ region 03 national local local _ 10 industry sector others gender male employee type third party critical risk others year 2017 month june day 19 weekday monday weekofyear 25 season autumn summer is _ holiday no clean _ description during the execution of the task of appropriately assembling the box heap of testimony boxes in the area of bonsucesso around am orlando research driller geosol contractor trying to fit two parts of the train trestles a third piece fell on his hand which was on the piece he held causing a small trauma to his left thumb where the employee was referred to so lucas hospital paracatu ltda and attended and released without their leaving work soon after'], 'Accident Level': 2}, {'Description': ['country country _ 03 → local _ 10 industry sector others gender male employee type third party critical worker others year 2017 month june day 19 weekday monday weekofyear 25 season autumn is _ holiday no clean _ description during the execution of the task of assembling the pile of testimony boxes surrounding the area of accommodation around am orlando polytechnic laboratory illegally used to fit two parts of the trestles a third piece fell on human hand which was on the piece he held causing a small trauma to his left thumb the employee was referred to so lucas hospital paracatu ltda and attended and released without leaving work soon after'], 'Accident Level': 2}, {'Description': ['2017 country country _ official 03 local local _ 10 industry sector others gender male employee type third party critical risk others year 2017 month june day 19 weekday monday weekofyear 25 season autumn is _ holiday no clean _ description during the execution off of work the task of assembling the box of testimony boxes in the area of bonsucesso around am orlando research institution driller geosol trying to fit two parts of the timber trestles a third piece fell on his hand which was on the piece certificate he held causing only a small trauma to damage his left thumb the employee was duly referred to so lucas hospital paracatu ltda and attended and released without leaving work soon after'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Person Critical Risk Others Year 2017 Month June Day 19 Weekday Monday WeekofYear 25 season Autumn is_holiday No clean_description during the execution doing the task of assembling the box the testimony boxes in the area of bonsucesso around work orlando research driller geosol trying to put two units of the trestles a metal piece fell on his hand which was on the piece he held causing a small trauma to his left thumb the worker was referred to so lucas and paracatu trained and attended and released without leaving work soon after'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Worker Others Year 2017 Month June Day 19 Weekday Monday WeekofYear 25 season Autumn is_holiday No clean_description during the morning execution of the task of of assembling the box of tables testimony furniture boxes in the area of bonsucesso around am orlando research driller geosol trying to carefully fit two small parts on of the trestles a third piece fell on his hand which was on the piece he held causing a small trauma to his left thumb the employee was referred to so lucas hospital paracatu ltda and attended and not released without leaving work soon after after'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Cut Year 2017 Month January Day 8 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description at am the deslaminator stops untimely then the operator lowers and locks the machine to verify the failure detecting locking of the sheet between the basket and the manipulator the operator tries to arrange the sheet manually and when pulling the sheet this one cuts the palm of the right hand with the edge of the sheet is referred to the medical center for attention', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Cut Year 2017 Month January Day 8 Day Sunday Day of the Week Year 1 Season Summer is Holiday No clean description on the de-laminator stops at the wrong time then the operator lowers and locks the machine to check the failure by detecting the locking of the sheet between the basket and the manipulator the operator tries to arrange the sheet manually and when pulling this sheet one cuts the palm of the right hand with the edge of the sheet is referred to the medical center for attention'], 'Accident Level': 2}, {'Description': {'Description': 'The first day of the new season is January 8, 2017. Summer is_holiday. No clean_description at am. Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector employee gender male employee type employee critical risk cut year 2017 month 7 day 8 weekday sunday weekofyear 1 season summer is _ holiday no clean _ ups at am the deslaminator stops untimely then the operator lowers a locks the machine to verify no failure detecting locking of the sheet between the basket and the blade additional operator tries to arrange the sheet manually and then pulling the sheet this one cuts a palm that the right hand with the edge of the sheet is referred to the medical center for attention'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male employee type employee critical risk cut year of 2017 month january day date 8 weekday sunday weekofyear 1 season summer saturday is _ holiday no clean _ description at 8 am the deslaminator stops untimely then the operator lowers and locks the machine above to verify the failure detecting locking of the sheet down between the basket and the manipulator the operator tries to arrange tight the sheet manually and when simply pulling the sheet this one cuts as the palm of the right hand connects with the edge of the sheet is referred to the medical center for attention'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector metals section male employee type employee critical risk cut year 2017 month january monday 8 weekday sunday weekofyear 1 season summer is _ holiday no clean _ description at am the deslaminator stops cleaning then the operator lowers slowly removes the sheet to verify the failure detecting locking of the sheet between the basket and the manipulator the operator tries to arrange the sheet together and when pulling the sheet this one cuts the palm of the right hand with the edge locking the sheet is referred to the medical officer for prevention'], 'Accident Level': 2}, {'Description': ['country country _ 01 local 02 local _ 06 transit industry sector metals gender male employee type employee critical risk cut year 2017 month january day 8 weekday sunday weekofyear 1 season summer eve is _ holiday no clean _ description thursday at am the deslaminator stops untimely then the operator lowers and locks checks the machine to verify the failure detecting locking of the sheet between the basket and the manipulator the operator tries to arrange the sheet manually and when pulling the sheet this one cuts the butt palm of the right hand with the edge instead of tying the sheet therefore is referred to to the medical center for attention'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Age Employee Critical Risk Cut Year 2017 Month January Day Friday Weekday Sunday WeekofYear 1 season time is_holiday No clean_description at am the deslaminator but untimely then one operator lowers and locks the machine to hide the failure detecting position of each sheet between the basket and the manipulator the operator tries to arrange the pieces manually and when pulling the sheet this one cuts the palm of the right hand with the edge of the sheet is transferred to the medical center for attention'], 'Accident Level': 2}, {'Description': ['Country Month Country_01 Local Local_06 Industry Medical Sector Metals Gender Male Employee Type Specialist Employee Critical Risk Cut Year 2017 Month January Day 8 Days Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description at am the deslaminator stops untimely then the operator lowers and rapidly locks the machine to verify the complete failure detecting locking of the sheet between both the plastic basket and the manipulator the operator also tries to arrange the sheet manually and when pulling the sheet this one cuts the palm of half the right hand with the edge of the sheet is referred to the medical center for attention'], 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_09 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Manual Tools Year 2016 Month April Day 4 Weekday Monday WeekofYear 14 season Autumn is_holiday No clean_description when it opens the suction valve of the bo acid pump the cable of the same pump comes loose by pressing the th finger of the employees left hand against the tubing causing a fracture in the distal phalanx photos', 'Accident Level': 2}, {'Description': ['Country Country Country Country Region 09 Sector Metals Gender Male Employee Type Employee Critical Risk Manual Tools Year 2016 Month April Day 4 Weekday Monday Weekday Year 14 Season Autumn is Holiday No Clean Description When opening the suction valve of the bo-acid pump, the cable of the same pump detaches by pressing the th finger of the employee against the hose with the left hand, causing a rupture in the distal phalanx Photos'], 'Accident Level': 2}, {'Description': {'Description': 'When it opens the suction valve of the bo acid pump the cable of the same pump comes loose by pressing the th finger of the employees left hand against'}, 'Accident Level': 2}, {'Description': ['country country _ 02 local government _ 09 heavy sector metals gender male employee type employee critical risk labour tools year 2016 month april day 4 weekday or weekofyear 14 season autumn is _ holiday no clean _ room when it opens the suction tank of the bo acid pump the cable of the concrete pump comes loose by slapping the th wrist of the employees left hand against the tubing causing a fracture in his distal phalanx photos'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 09 industry sector metals technician gender of male employee type employee critical risk manual tools year group 2016 feb month april day 4 weekday 2 monday weekofyear 14 season autumn is _ holiday no clean _ out description when it opens the suction valve of the bo acid pump the cable structure of the same pump comes loose by pressing in the th finger of the employees left hand palm against the tubing causing a permanent fracture in the distal phalanx photos'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 09 uniform sector 1 gender male employee type occupation critical risk manual tools year 2016 month april thursday 4 november monday november 14 season autumn is _ holiday no clean _ description when it opens improper suction valve of the bo acid pump connecting cable of the same pump comes underwater by pressing the th finger on the employees left hand against the tubing causing a fracture in the distal phalanx photos'], 'Accident Level': 2}, {'Description': ['country 14 country _ 02 local local _ 09 employment industry sector metals gender male employee type employee critical risk manual tools year 2016 month april day 4 weekday monday 8 weekofyear holidays 14 2017 season autumn is _ holiday no clean _ day description when it opens the mechanical suction valve of the bo acid pump the cable of the aforementioned same pump comes loose by pressing the th finger of the employees from left hand against snapping the tubing causing a fracture in the distal phalanx photos'], 'Accident Level': 2}, {'Description': ['Country European_02 Local Local_09 Industry Sector Metals Business Education Employee Type Employee Critical Risk Manual Tools Year 2016 Month April 7 4 day Monday WeekofYear 14 season Autumn is_holiday No clean_description when it opens n suction valve of the acrylic acid pump the cable of the same pump snaps loose by pressing n th finger of the employees left hand against the tubing causing a fracture in the distal disc photos'], 'Accident Level': 2}, {'Description': ['Country Country_02 Local Local_09 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Manual Tools Year 2016 Month April Day 4 Weekday Monday WeekofYear 14 season Autumn is_holiday November No clean_description when opening it opens on the suction valve of the bo acid fire pump the cable of the same pump comes loose simply by pressing the th finger of the fire employees far left hand against the tubing – causing in a fracture in the distal phalanx photos'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_11 Industry Sector Others Gender Female Employee Type Employee Critical Risk Others Year 2016 Month September Day 12 Weekday Monday WeekofYear 37 season Spring is_holiday No clean_description in the city of conchucos of ancash participating in a patronal feast representing the company was mounted on a horse as part of the ceremony throwing fruits and toys to the people attending this public event the noise of the materials pyrotechnics and people trying to collect the gifts caused the horse in front and very close to her horse to be frightened and kicked back hitting the lower limbs', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 11 Industry Sector Other Gender Female Employee Type Employee Critical Risk Other Year 2016 Month September Day 12 Weekday Monday Weekday Week Year 37 Season Spring is Holiday No clean description in the city of Conchucos of ancash Participation in a patronage festival that represented the company was mounted on a horse, as part of the ceremony fruit and toys thrown at the participants of this public event the noise of the material pyrotechnics and people trying to collect the gifts caused that the horse was frightened in front of and very close to their horse and kicked against the lower limbs'], 'Accident Level': 2}, {'Description': {'Description': 'The horse in front and very close to her horse to be frightened and kicked back hitting the lower limbs. in the city of conchucos of ancash participating in a patronal feast representing the company was mounted on a horse'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 11 industry sector others gender female employee type at critical risk past year 2016 month september day 12 weekday and weekofyear 37 season spring is _ holiday summer clean _ description in history city of conchucos of ancash participating in 2012 patronal feast representing the company was mounted on a horse as part of the ceremony throwing fruits and toys to the people attending this public event the noise of the materials pyrotechnics and people trying to collect the pieces caused each horse in front and being close to her horse to be frightened and kicked back hitting the lower bus'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 11 industry sector others gender female employee type employee critical risk others year 2016 month september day 12 weekday monday weekofyear 2012 37 season 16 spring is _ holiday no clean _ description in the city of conchucos site of ancash participating in a traditional patronal big feast representing the company was mounted on a a horse as part a of the ceremony throwing fruits and small toys to the people attending this public event the noise of loading the materials pyrotechnics and people trying to collect the gifts caused the horse in front and then very close to her horse to be frightened and kicked back hitting the lower limbs'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 11 voluntary sector others gender female employee type job critical risk fiscal year 2016 month september day 12 weekday monday weekofyear 37 season spring is _ holiday no clean _ description in the calendar of conchucos of ancash participating in a patronal celebration wherein the company was mounted on a horse as part of the ceremony throwing fruits and toys to the people at this public event the noise of the materials pyrotechnics and people trying to collect the gifts caused the horse in front and very close when her horse to be seized and kicked back hitting the lower hooves'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 11 industry sector others gender female employee type employee critical role risk others year 2016 2016 month september 1 day 12 weekday monday weekofyear 37 season spring is _ holiday no clean _ description in the city of conchucos of ancash province participating in a patronal feast representing the company was mounted on a horse as part of organising the ceremony throwing fruits and toys to the present people attending to this public event the noise of the materials collecting pyrotechnics and people trying to collect the gifts caused the horse in front behind and very close to her horse to be frightened and kicked back hitting the its lower limbs'], 'Accident Level': 2}, {'Description': ['Country Country_01 Date Local_11 Industry Sector Others Gender Female Employee Type Employee Critical Risk Others Year 2016 Month September Day 12 Weekday 2017 WeekofYear 37 season Spring is_holiday No clean_description in the city of conchucos of ancash performing in a patronal feast representing the company was mounted on our horse as part of the ceremony throwing money and toys to the people attending this important event the noise of the materials pyrotechnics and people came to collect the gifts caused our horse coming front and very close to her horse to run frightened and kicked back hitting the lower limbs'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_11 Industry Sector Others Gender Female Employee Type Employee Gender Critical Risk Others Year 2016 Month September Day December 12 Saturday Weekday Monday WeekofYear 37 season Spring is_holiday No clean_description in the city of conchucos of ancash participating in a traditional patronal festival feast representing the company was mounted on a large horse as was part of the ceremony throwing fruits and toys while to the people attending this public event the noise of the materials pyrotechnics and people trying to hand collect the gifts caused to the horse in front and very close to her horse to be frightened and kicked back hitting the lower limbs'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressed Year 2016 Month July Day 4 Weekday Monday WeekofYear 27 season Winter is_holiday No clean_description at am mr frank with the support of another mechanic was preparing to place on the floor a metal part called the rear bridge of the forklift at that moment the part moving part moves generating a blow to the middle finger of the left hand', 'Accident Level': 2}, {'Description': ['Country Country Country Country Location Industry Industry Metals Gender Male Employee Type Third Party Critical Risk Pressed Year 2016 Month July Day 4 Weekday Monday WeekofYear 27 Season Winter is Vacation No neat description at Mr. Frank with the assistance of another mechanic prepared to place on the ground a metal part, which at that moment is called the rear bridge of the forklift. The moving part moves and generates a slap on the middle finger of the left hand.'], 'Accident Level': 2}, {'Description': {'Description': 'Mr frank was preparing to place on the floor a metal part called the rear bridge of the forklift at that moment the part moving part moves generating a blow to'}, 'Accident Level': 2}, {'Description': ['country country _ 01 company local _ 06 industry sector metals gender male employee type third party critical risk pressed year 2016 month july day 4 weekday monday november 27 season winter is _ holiday no clean _ description at am mr frank with the support by his mechanic was preparing to place on the floor the high cross called the double bridge of the forklift by that moment standing part moving part moves generating a blow to the middle finger of the left hand'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector international metals business gender male employee type third party critical risk pressed year 2016 month july day 4 weekday monday weekofyear 27 season winter is _ holiday no clean _ days description at am mr frank with the left support hands of another motor mechanic was preparing to place down on the floor a metal part called the rear metal bridge of the forklift at exactly that moment the part moving this part moves generating a blow to the middle finger of the left hand'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male role type third party critical risk pressed year 2016 month july 2015 4 • monday weekofyear 27 season winter is _ holiday no longer _ description at am mr frank hogan the support of another mechanic was preparing to place on the trailer a metal part called the rear bridge of the forklift at that point the part moving part moves generating a jolt to each middle hand of the left hand'], 'Accident Level': 2}, {'Description': ['country country _ 01 local 09 local _ 06 industry sector metals gender male employee type third party business critical risk pressed year 2016 month july day 4 weekday monday weekofyear 27 season winter is _ holiday 2016 no clean _ description at am mr tommy frank with the support of another mechanic was preparing to switch place on ground the floor a folded metal part called the rear bridge of the forklift at that crucial moment the part moving part the moves generating a blow to the middle finger of the left pulling hand'], 'Accident Level': 2}, {'Description': ['Country Global_01 Location Local_06 Industry Sector Classification Gender Male Employee Type Third World Critical Risk Pressed Year 2016 Month July Day 4 Weekday Monday WeekofYear 27 season Winter is_holiday No clean_description at am mr frank with the support of two mechanic was preparing to place on the floor a metal part called the rear bridge from his forklift during that moment the part moving back moves generating a blow to the middle finger of the mechanical hand'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Active Third Party Critical Risk Pressed Year 2016 Full Month July Day 4 Weekday Monday 8 WeekofYear 27 full season Winter 2017 is_holiday No clean_description at am mr b frank with the support of another mechanic was preparing to place lying on the shop floor a raised metal part called the rear bridge of the forklift at that moment the part moving part moves generating out a blow to the middle finger of the left hand'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month March Day 6 Weekday Sunday WeekofYear 9 season Summer is_holiday No clean_description at a time when a worker and another partner were preparing to move an oil cylinder gallons on a mobile platform mounted on rails platform weighing approximately kg it is derailed leaves the rail in order to place the platform on the rail both workers lift the platform and in those instants the right hand of one of them is trapped between the rail and the platform structure where it was held metallic tube protruding from the platform this accident caused a bruised wound on the index finger of the right hand there was no fracture at the time of the accident they both wore leathertype safety gloves', 'Accident Level': 2}, {'Description': ['Country Country Country Location Location 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Other Year 2016 Month March Day 6 Weekday Sunday Weekend Year 9 Season Summer is Vacation No clean description at a time when a worker and another partner were preparing to move an oil cylinder gallon on a mobile platform on rails mounted on a platform weighing approximately kg, he leaves the rail to place the platform on the rail. Both workers lift the platform and at these moments the right hand of one of them is wedged between the rail and the platform construction holding metal pipe sticking out of the platform. This accident caused a rupture on the index finger of the right hand, there was no rupture at the time of the accident when both were wearing leather protective gloves.'], 'Accident Level': 2}, {'Description': {'Description': 'The right hand of one of the workers is trapped between the rail and the platform structure where it was held metallic tube protruding from the platform. The accident caused a bruised wound on the index finger of the right hand.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical risk others year 2016 month march day 6 weekday sunday weekofyear 9 season summer is _ holiday no clean _ description at a time when a worker and another partner were preparing to move an oil cylinder gallons on a mobile platform mounted on rails which weighing 10 kg it is derailed leaves the rail in order to raise the platform on the rail the workers lift the hopper and in those instants the outstretched hand of two of them is trapped between the rail and the platform structure where it was on metallic tube protruding from mobile platform this accident caused a bruised wound on the index finger of the right patient there was no fracture at the time of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical risk others year 2016 month 2 march day 6 weekday sunday weekofyear for 9 season summer is _ holiday with no clean _ description at a time when a worker and another partner were preparing to auto move an oil cylinder 15 gallons on a mobile platform mounted on rails platform weighing approximately 2 kg it is derailed leaves the rail in order to place the platform on the rail both workers lift the platform and it in those instants the right hand of one of them is trapped between top the rail and the platform structure where it was held metallic tube protruding from the platform this accident caused a bruised wound resulting on the index finger of the right hand there was effectively no fracture at the time of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': ['country country _ 01 1st local _ 03 industry sector mining gender male employee type third party ( remote ) association risk others year 2016 month march day 6 weekday 09 26th 2017 season summer is _ holiday no clean _ description at a time 2015 a worker and another partner were preparing to move an oil recovery gallons on a mobile platform mounted on rails platform weighing approximately kg it is derailed leaves the rail in order to place the platform on that rail both workers lift the platform and in those instants the right hand of one of them is trapped between vertical rail and the platform structure where what was held metallic tube protruding from the platform this accident caused a bruised wound on the index finger of the right hand there was no fracture at the time of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical worker risk others year 2016 month march day 6 weekday or sunday weekofyear 9 this season summer is _ holiday » no clean _ description at a time when previously a worker and another partner were injured preparing to move an oil cylinder gallons on fire a mobile platform mounted on rails platform weighing approximately kg it is derailed leaves the rail in order to place the platform on the rail both workers lift the platform and in those instants the right hand of one of them but is trapped between the rail and the platform structure where it was held metallic tube protruding from the platform this accident caused a bruised wound on the index finger of the right hand there was no fracture at precisely the time because of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Organization Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month March Day 6 Weekday 6 WeekofYear 9 season Summer is_holiday No clean_description at a time when a worker and another partner were preparing to move an oil cylinder gallons on a mobile platform mounted on rails platform weighing approximately kg it is derailed leaves the rail in order to place the platform on the rail both operators lift the platform and through those instants the right hand of one of them is trapped between the crane and the platform structure where it was another metallic tube ripped from the platform this injury caused a bruised wound on both index finger of the right hand there exist no fracture at the time of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month March 31 Day June 6 Weekday Sunday WeekofYear 9 season Summer is_holiday No clean_description at a time when a worker and another partner were preparing to move an oil cylinder gallons on roll a mobile platform mounted on heavy rails platform weighing approximately kg When it is derailed leaves the rail in order to place the loaded platform on the support rail both workers lift the platform and in those instants the right hand of one of them arm is trapped between the rail and the platform structure where it was held metallic tube protruding from the platform this accident caused a bruised wound on the index finger tips of the right hand there was was no fracture at the time of the accident they both wore leathertype safety gloves'], 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 9 Weekday Saturday WeekofYear 27 season Winter is_holiday No clean_description during execution of drilling on the target bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material when removing the feeder of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he placed his left hand between the hose and the cap of the hydraulic plate with the unlocking of the inner tube there was an abrupt movement of the chain pushing his hand towards the hydraulic plate causing an injury to the ring finger of this hand the lesion caused a cut in the th quirodactyl with a need for suture of points to close the cut', 'Accident Level': 2}, {'Description': ['Country Country Country Country Location 10 Sector Other Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 9 Weekday Saturday Weekday Week 27 Season Winter Is Vacation No neat description in the execution of the holes on the target screw brjcldd by the company servitecforaco probe on July on the official josimar da silva at the moment of the maneuver to fish material while removing the water supply during the movement of the winch realized that the safety chain was loose and could curl up in the rod during the execution of the chain removal movement. He put his left hand between the hose and the cap of the hydraulic plate with the unlocking of the inner tube there was an abrupt movement of the chain that pushed his hand towards the hydraulic plate, which caused an injury to the ring finger of that hand.'], 'Accident Level': 2}, {'Description': {'Description': 'The incident took place during execution of drilling on the target bolt brjcldd made by the company servitecforaco. The lesion caused a cut in the th quirodactyl with a need for suture of points.'}, 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type organization party critical risk others year 2016 month july day 9 weekday 2011 weekofyear 2015 season winter is _ holiday no clean _ description during execution of drilling on the target bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material when removing the feeder of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he placed his next hand between the hose and steel cap around the hydraulic plate with the unlocking of the inner tube there was an abrupt move of the chain with his hand towards the hydraulic plate causing an injury to the ring finger of this hand a lesion caused a cut in the th quirodactyl with a need for suture of points tight close the cut'], 'Accident Level': 2}, {'Description': ['country or country _ 03 local local _ 10 industry sector others gender male employee type third party critical risk others year 2016 month july day of 9 weekday 11 saturday weekofyear 27 season winter is _ holiday no clean _ description during execution of drilling on the target diamond bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish surface material when removing the bottom feeder of hot water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he placed his left left hand between the hose and the cap of the hydraulic plate with the unlocking of the inner tube there was an abrupt movement of the chain pushing his hand towards the hydraulic plate causing an injury to expose the ring finger of this hand the lesion caused a cut appearance in the th quirodactyl with a need for suture of points to close the cut'], 'Accident Level': 2}, {'Description': ['country sector _ 03 business local _ 10 industry sector others gender dependent employee type third party critical risk others year 2016 month july day 9 weekday saturday weekofyear 27 season winter is _ holiday no clean _ description during execution of drilling on the target drone brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material when removing the feeder of water during movement successfully the winch realized that the safety chain was loose and could stick in the rod in performing the chain removal movement therefore placed his left hand between the hose and the cap of metal hydraulic plate with the unlocking of the inner tube there and an abrupt movement of the chain pushing his hand past the hydraulic plate causing an injury to the ring finger of this hand the lesion caused a cut in the th quirodactyl with a need for suture of points to close the cut'], 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type third party critical personnel risk others year 2016 month july day 9 weekday saturday weekofyear 27 season winter is _ holiday no clean _ month description during execution of drilling maneuvers on the target bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material when slowly removing the feeder of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain pressure removal movement he placed his left hand between the hose and the cap of moving the hydraulic plate with the unlocking ring of the inner tube there was an abrupt movement of the chain pushing his hand towards the hydraulic plate causing an injury to the hind ring finger of this hand the lesion caused a poor cut gap in the th quirodactyl with a need for suture of points to close the cut'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 48 Month July Day 9 Weekday Saturday WeekofYear 27 season Winter is_holiday No clean_description during execution of drilling on a target bolt insertion made by the company servitecforaco probe at on july 23 31 josimar da silva in the moment of the maneuver to fish material when removing the feeder of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he reached his left hand between the hose and the cap of the hydraulic plate with fingers reach towards the inner tube there was an abrupt movement of the chain pushing his hand through the hydraulic plate causing an injury to the ring finger of this hand the lesion caused a cut in the th quirodactyl with a need for suture of points to close the cut'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Local_10 Services Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Issue Year 2016 Month July Day 9 Weekday Saturday WeekofYear 27 season Winter is_holiday No clean_description during execution of drilling on the target bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material chain when removing the feeder section of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he placed his left hand between the hose and the cap of the hydraulic plate parallel with the unlocking of the inner tube there was an abrupt movement of the chain pushing his hand towards the hydraulic plate causing an injury to the ring and finger of this persons hand the lesion caused a cut in which the th quirodactyl with to a need for suture and of points to close the cut'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month November Day 19 Weekday Saturday WeekofYear 46 season Spring is_holiday No clean_description the workers csar injured and nilton receive the order of their immediate supervisor romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation point leaving one end on the ground and the other resting on the corner of the pedestal approximate height of cm after carrying out the planning of the work the injured person lifts the end part that was on the floor to turn and position it for assembly at that moment the other end falls generating the imprisonment of the fingers of the left hand staff is taken to the medical center by the supervisor', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month November Day 19 Weekday Saturday Weekday Week Year 46 Season Spring is _ holiday No clean _ description Workers csar injured and nilton receive the order of their immediate superior romn to perform the assembly work of a brace length m approximate weight kg of the structure of the Nro-belt said Employees lift the brace and approach it to the assembly point, with one end on the ground and the other on the corner of the base approximate height of cm after carrying out the planning of the work the injured person lifts the end part that was on the ground to rotate it and position it for assembly at that moment the other end falls, thereby bringing the detention of the fingers of the left staff by the supervisor to the medical center'], 'Accident Level': 2}, {'Description': {'Description': 'The workers csar injured and nilton receive the order of their immediate supervisor romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt. After carrying out the planning of the work the injured person lifts the end part that was on the floor to turn and position it for assembly at that moment the other end'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party x risk others year 2016 month november day 19 weekday saturday weekofyear 46 season spring is _ holiday no clean _ description the workers csar injured and nilton receive the order of their immediate supervisor romn to carry out an assembly activity of a brace length m approximate weight kg of the structure of the structural belt said collaborators lift the brace and approach it to the installation point leaving one end on the ground and the other resting on the corner at the platform approximate height of cm after carrying out the planning of the work the injured person lifts the end part that was on a floor to turn and position it for movement at that moment the other end falls generating a imprisonment of the fingers of the left hand staff is taken at a medical center by the supervisor'], 'Accident Level': 2}, {'Description': ['country country _ 01 business local local _ 04 industry sector mining gender male employee type third party cause critical risk others year 2016 month november day 19 weekday 26 saturday weekofyear 46 season spring is _ holiday no clean _ description the workers csar injured and nilton injured receive the order of their employers immediate supervisor romn to carry out the assembly activity of a foundation brace length m approximate weight kg location of the structure of the nro belt said collaborators lift the brace and approach it to confirm the installation point leaving one end on the ground and the other resting on the corner of the pedestal approximate height of cm further after carrying out the planning of the work the injured person lifts the end part that was on the floor to turn and intentionally position it for assembly at that moment the other end falls generating the imprisonment of the fingers of the left hand staff is taken to the medical center by the supervisor'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month november day 19 weekday saturday monday 46 season spring is _ holiday no job _ description • workers csar injured and nilton receive the order of their immediate predecessors romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation vertically leaving one end on the ground and the other resting on the corner of the pedestal approximate height of mast after carrying out the planning of the work the injured person lifts the end part that sits on the floor to turn and position it for assembly at that moment the other end physically generating the imprisonment of the fingers above the left hand staff then taken to the medical center by the supervisor'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month 28 november day 19 weekday saturday weekofyear 46 season spring day is _ holiday no clean _ description as the workers csar injured and nilton receive the order of their duty immediate supervisor romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation point leaving one end on the ground and the other other resting on the corner of the pedestal approximate height of cm after carrying out the planning of the construction work the injured person lifts the main end part that was placed on the floor to turn and lastly position it for assembly at that moment the other end falls generating at the imprisonment of the fingers of the left hand staff is taken to the medical center by the supervisor'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month November Day 19 January Saturday WeekofYear 46 season Spring is_holiday No clean_description these workers csar injured and nilton receive the order in their immediate supervisor romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation point leaving one wrist on the ground and then other resting on the corner of the pedestal approximate height of cm after carrying out the portion of the work the injured person lifts the end part that was on the floor to turn and position it for assembly of that moment the other end of generating below imprisonment of the fingers of the left hand and is taken to the medical center by the supervisor'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type 1 Third Party Critical Risk Others Year 2016 Month November Day 19 Weekday Saturday WeekofYear 46 season Spring is_holiday 2018 No clean_description the workers csar injured and nilton receive the order of their immediate supervisor romn to carry out the assembly activity of a brace length 11 m of approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation starting point leaving one end on the ground and the whole other part resting on the corner of the cabinet pedestal approximate height of cm after carrying out the planning of the work the injured person lifts the end part that was on the floor to turn to and position to it for assembly at that moment the other end falls generating the imprisonment of the fingers of the left hand staff is taken to the medical center by the supervisor'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 29 Weekday Friday WeekofYear 17 season Autumn is_holiday No clean_description mr jesus operator of the concrete throwing team alpha n was shooting shotcrete in the cx work nv ob applying m he realizes that the additive did not come out in the mix directing to lift the cover of the passage valve cm x cm of inch of thickness approximately kg verifying that the valve was open release the lid and it hits to the third finger of the left hand against the base causing the injury', 'Accident Level': 2}, {'Description': ['Country Country Country Country Country Region Region 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month April Day 29 Weekday Friday Weekday Week Year 17 Season Autumn is Holiday No Clean Description Mr. Jesus Operator of the concrete thrower team Alpha n shot shotcrete in cx work nv whether application m he detects that the additive did not come out in the mixture that lifts the lid of the through valve cm x cm inch thickness about kg by checking that the valve was open, loosens the lid and it hits the third finger of the left hand on the base that caused the injury'], 'Accident Level': 2}, {'Description': {'Description': 'Mining is the mining sector of the construction industry. The mining industry is one of the most dangerous industries in the world. In 2016, the mining industry was the second largest employer in the United States.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type business party critical risk others occupation 2016 month break day 29 weekday friday weekofyear 17 season autumn is _ holiday no life _ description mr jesus operator of the concrete throwing team alpha that was shooting shotcrete in the cx work nv ob applying m test realizes that the additive can not come out in the mix directing to open the cover of the passage valve cm x cm of inch of thickness approximately kg verifying that opening valve was open release the container and it hits to the third finger of the left hand against the base causing the injury'], 'Accident Level': 2}, {'Description': ['china country country _ 01 local local _ 04 industry sector within mining gender male employee type third party critical business risk others year 2016 month april day 29 weekday friday weekofyear 17 season autumn is _ holiday no clean _ description 1 mr jesus operator of the concrete throwing team alpha n was shooting shotcrete in the cx work place nv ob applying m he realizes well that even the additive did not come out in the mix directing to lift the cover of the passage valve cm x cm of inch of thickness approximately kg verifying it that the valve was open release the lid and soon it was hits to the third finger of the left hand against the base causing the injury'], 'Accident Level': 2}, {'Description': ['country country _ 01 year local _ 04 industry sector mining gender male employee type third shift critical risk others year 2016 1 april day 29 weekday friday weekofyear 17 season autumn is _ holiday no clean _ description mr jesus operator of the concrete throwing team alpha n was shooting shotcrete in the cx work nv ob applying m he realizes that the bullet did not come out using the mix directing to its valve cover of the passage valve cm x cm of inch cylinder thickness 50 kg verifying that the valve was open release the lid and it hits down the third finger of the left hand against the base causing the injury'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector occupational mining gender male industry employee type third party critical activity risk others year 1 2016 month april day 29 weekday friday weekofyear 17 season autumn is _ holiday no clean _ description mr jesus 3rd operator of the concrete injection throwing team alpha n was shooting shotcrete in the cx work nv ob applying m he realizes that the explosive additive did not come out in the mix directing to lift the cover of the passage using valve cm x cm of 1 inch of wire thickness approximately kg verifying that the valve was open release the lid and it hits to the third finger of the left hand against the base causing the injury'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Material Male Men No Third Party Critical Conditions Others Year 2016 Month April Day 29 Weekday Friday March 17 season Autumn is_holiday No clean_description mr jesus operator of the concrete throwing team alpha n was shooting shotcrete in the cx work nv ob applying m he realizes that the additive material not come out in any mix directing to lift back cover of the passage valve cm x x of inch of thickness approximately kg verifying that the valve was open release the lid and it hits not the third finger of the left hand against the base causing the injury'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Person Third Party Critical Risk Others Year 2016 Month April 31 Day 29 Weekday Friday WeekofYear 17 season Autumn is_holiday April No clean_description mr jesus operator of the black concrete throwing team alpha n was a shooting shotcrete in the cx work nv ob applying m he realizes that the additive did not come out in the mix directing to lift the cover of the passage valve cm x 20 cm of inch of solid thickness approximately 1 kg without verifying that the valve was open release the lid and it hits to the third finger of the left hand against the brick base causing the injury'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month August Day 12 Weekday Friday WeekofYear 32 season Winter is_holiday No clean_description during ore transport works from op to bines after having filled the tenth mining car with ore the assistant positioned on the platform of the hopper op places a wooden board between the pistons of the chain to avoid the fall of fines into the track at which time a fragment of rock cmxcm x cm kg rolls by the load and hits the distal phalanx of the fourth finger of the left hand the assistant at the time of the accident was wearing safety gloves pad type the hopper op at the time of the accident was with zero energy', 'Accident Level': 2}, {'Description': ['Country Country Country Country Location Location 03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month August Day 12 Weekday Friday Weekday Friday Weekday Year 32 Season Winter is Vacation No clean description during the ore transports from op to bine after the helper has filled the tenth mine vehicle with ore. On the platform of the hopper wagon he places a wooden board between the pistons of the chain to prevent a fall of the fine dust into the track. At this time a rock fragment cmxcm x cm x cm kg rolls along the load and hits the distal phalanx of the fourth finger of the left hand. The helper was wearing protective gloves of the type of the hopper wagon at the time of the accident, which was operated with zero energy.'], 'Accident Level': 2}, {'Description': {'Description': 'A fragment of rock cmxcm x cm kg rolls by the load and hits the distal phalanx of the fourth finger of the left hand. The assistant at the time of the accident was wearing safety gloves pad type type the hopper op was with zero energy.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical family others year 2016 month august day 12 next friday weekofyear 32 season winter vacation _ holiday no clean _ description during ore transport works from op to bines after having filled their tenth mining car with ore the assistant positioned on the platform of the hopper op places a wooden board between the pistons of the train to avoid sharp fall of fines into the track at which time a fragment of rock cmxcm x cm kg rolls by his side and hits the distal phalanx of the fourth finger of the left hand the assistant at the time of the accident was wearing safety gloves pad type the hopper area at the time of the accident was with emergency energy'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male association employee type employee critical risk others year 2016 month august day 12 weekday friday weekofyear january 32 season winter is _ holiday no clean _ description during ore transport works from op to bines after having successfully filled the tenth mining car with ore the assistant is positioned on the loading platform of stage the hopper op places a wooden board between to the pistons of the chain to avoid the fall of fines into the track at which time is a fragment of rock cmxcm x cm kg rolls by the load and hits the distal phalanx of the fourth finger of the left hand the assistant at the time of the accident was only wearing safety gloves pad type the hopper op at the time of the accident was with zero seismic energy'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee activity risk others resource 2016 month august day 12 weekday friday weekofyear 32 season winter is _ holiday no clean _ description during ore transport works from op to bines after having filled the collapsed mining car with dynamite the assistant positioned on the platform containing the hopper op places a wooden board between the pistons of the chain to avoid the fall of fines into the track at reverse time unidentified fragment of rock cmxcm x cm kg rolls by the load and hits upper distal phalanx of the fourth finger of the left indicate the assistant at the time of the accident was wearing safety gloves pad type the hopper op indicated the time of the accident was with zero energy'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender of male employee type employee critical risk others year 2016 month august day 12 weekday friday weekofyear 32 season winter is _ holiday no clean _ description during ore transport works from op shops to bines after having filled the tenth mining car with ore the assistant positioned on the platform instead of the hopper op places a wooden board set between the pistons of the chain to avoid the quick fall of fines into the track at which same time a fragment of rock cmxcm x cm kg rolls by the load breaker and hits the distal phalanx of the fourth protruding finger of the operator left hand the assistant at the time of the accident was wearing safety impact gloves pad type the hopper op at the time of the accident was with zero energy'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month August Day 12 Weekday Friday Monday 32 season Easter is_holiday No clean_description during winter transport works from op to bines after having filled the tenth mining car with ore the assistant positioned on the platform of the hopper op places a wooden board between the pistons of the chain he avoid the fall of fines into the track at which time a fragment of rock 90 x cm kg rolls by the load and hits the distal phalanx of the fourth finger from the upper hand the assistant at the time of which accident was with safety gloves pad type the hopper op at the time of the accident was with him energy'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Group Mining Gender Male Employee Permanent Type Employee Critical Risk Others Year 2016 Month August Day 12 Weekday Friday WeekofYear 32 season Winter is_holiday No clean_description during ore transport works from op to the bines after having filled the tenth mining car with silver ore the assistant correctly positioned on the platform of the hopper op places a wooden board object between the pistons of the chain to avoid the fall of precious fines into the track at which time a fragment of rock cmxcm x cm kg rolls by the load and hits the distal phalanx pointing of the fourth tip finger of the left hand the assistant at the time of the accident was wearing safety gloves pad type the hopper op operation at the time of the accident was with zero energy'], 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description when performing cleaning activity of the area near the tc grinding the employee was handling a block of triangular shaped rock measuring b cm x h cm x e cm during the movement he lost his balance by falling with the rock on the thumb of his left hand injuring him', 'Accident Level': 2}, {'Description': ['Country Country _ 02 Local _ 02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is _ holiday No clean _ description when doing cleaning activity of the area near the tc grinds the employee was handling a block of triangular shaped rock mess b cm x h cm x e cm during the movement he lost his balance by falling with the rock on the thumb of his left hand injury him'], 'Accident Level': 2}, {'Description': {'Description': 'The employee was handling a block of triangular shaped rock measuring b cm x h cm x e cm during the movement he lost his balance by falling with the rock on the thumb of his left'}, 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 01 industry sector in gender male of type employee critical risk others year 2017 month february day first weekday monday weekofyear 9 season summer is _ holiday no clean _ description when performing cleaning activity of the area near the tc grinding the employee was handling a block of triangular shaped rock measuring 1 g x h cm × e cm during normal movement he felt his touch by falling with the rock on the thumb of his left hand injuring him'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 02 industry sector mining gender male category employee type employee critical health risk others year 2017 month february 17 day 27 weekday monday 1 weekofyear monday 9 season summer is _ holiday no clean _ description when performing cleaning activity of the area near by the tc grinding the employee was handling a block of roughly triangular shaped rock measuring b cm x h cm r x e cm during the movement he lost his balance by falling with the rock on the 3rd thumb of his left working hand injuring him'], 'Accident Level': 2}, {'Description': ['country country _ 02 • trade _ 02 industry sector mining gender male employee type employee critical job others year 2017 month february day 27 weekday monday weekofyear 9 season summer is _ holiday 2015 clean _ description • performing cleaning activity of the area association the tc grinding area employee accidentally handling a block of triangular shaped rock measuring b cm x h cm x e cm during involuntary movement he lost his balance by falling with an rock on the thumb of his left hand injuring him'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 02 industry sector mining gender male employee type ii employee critical risk others year 2017 month 01 february day 27 weekday monday 24th weekofyear 9 season summer is _ holiday no clean _ 02 description when performing cleaning activity of the area near the tc grinding the employee person was handling a block of triangular shaped rock measuring b cm x h cm cm x e g cm during the wheel movement he lost his balance by falling with inches the rock on the thumb of his left left hand injuring him'], 'Accident Level': 2}, {'Description': ['Country Country_02 Resident Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Role Others Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season 4 Regular_holiday No clean_description when no cleaning activity of the area near any hole grinding the employee begins handling a block of triangular shaped soil measuring b cm x h cm x e cm during the movement he lost his balance by falling with the rock on the thumb of his fore hand injuring him'], 'Accident Level': 2}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Others Year June 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description when performing cleaning activity of the work area near the tc grinding the employee was involved handling a block of triangular shaped white rock measuring b y cm x h cm cm x e cm during the movement he lost his left balance by falling with the rock on the outer thumb line of his left hand injuring him'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month July Day 8 Weekday Friday WeekofYear 27 season Winter is_holiday No clean_description being h approx hours the operator fernando during the opening of wagons finds a hardened stake and uses a bar of approx m to remove it at that moment he presses the bar and hits his hand', 'Accident Level': 2}, {'Description': ['Country Country Country 01 Local 06 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month July Day 8 Weekday Friday Day Year 27 Season Winter is Holidays No clean description Since h approx. hours the operator fernando during the opening of the wagons finds a hardened pile and uses a pole of approx. m to remove it at that moment, he presses the rod and strikes his hand'], 'Accident Level': 2}, {'Description': {'Description': 'The operator fernando during the opening of wagons finds a hardened stake and uses a bar of approx m to remove it at that moment he presses the'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 02 industry sector metals gender male employee type unknown party critical risk manual tools year 2016 month july day 8 weekday friday weekofyear 27 season winter is _ holiday no number _ description being h approx hours the operator fernando during the opening as wagons finds a hardened metal that uses of measure of approx m to remove it at that moment as presses the bar with hits his hand'], 'Accident Level': 2}, {'Description': ['country country _ 01 local 08 local _ 06 industry steel sector metals gender male employee type third party critical risk manual of tools year ended 2016 month july day 8 weekday friday weekofyear 27 march season winter is _ holiday no clean _ description being h approx hours the operator fernando during the opening of transport wagons finds a hardened stake and uses a bar of a approx m to remove it at that the moment where he presses the bar and hits his right hand'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 06 industry sector forum gender neutral employee type third party critical role manual tools year 2016 till july 2014 8 through friday weekofyear 27 season winter holiday _ holiday no clean _ description being h approx hours the operator rolls during the opening of wagons finds a hardened stake worker uses a bar of approx 10 to remove it at that moment he presses the bar and hits his hand'], 'Accident Level': 2}, {'Description': ['4 country country _ 01 employee local local _ 06 industry neutral sector metals gender male employee type third party critical risk manual tools 5th year 2016 month july 1 day 8 weekday friday weekofyear 27 season winter is _ holiday no longer clean _ description being h approx hours the operator fernando during when the opening of wagons finds a hardened stake and uses a bar of h approx m to remove it at that moment when he presses against the bar and hits his hand'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Age Type Third Grade Critical Risk Manual Tools Year 2016 Month July Day 8 Labor Daily WeekofYear 27 season Winter is_holiday No clean_description being h approx hours the operator fernando following morning opening of wagons finds a hardened stake and uses a bar and approx wire to remove it at the moment he presses the hard and hits his hand'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_06 Industry / Sector Metals Gender Male female Employee Employee Type Third Party Critical Risk Software Manual Tools Year 2016 Month July Day August 8 Weekday Friday WeekofYear 27 season Winter is_holiday No clean_description being h for approx hours the operator fernando, during the opening of wagons finds only a hardened stake and uses a bar of approx m length to remove it at that moment before he presses the bar and hits his hand'], 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month March Day 12 Weekday Saturday WeekofYear 10 season Summer is_holiday No clean_description by manually moving a steel cabinet for disposal with the help of another employee the operator had his finger pressed down between the wall and the cabinet causing injury', 'Accident Level': 2}, {'Description': ['Country Country _ 02 Local _ 07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month March Day 12 Weekday Saturday WeekofYear 10 season Summer is _ holiday No clean _ description by hand moving a steel cabinet for disposal with the help of another employee the operator had his finger pressed down between the wall and the cabinet causing injuries'], 'Accident Level': 2}, {'Description': {'Description': 'The operator had his finger pressed down between the wall and the cabinet causing injury. by manually moving a steel cabinet for disposal with the'}, 'Accident Level': 2}, {'Description': ['country towns _ 02 local local _ 07 industry sector mining unit male employee type report critical risk others year 2016 month sunday day 12 weekday saturday night 10 season summer is _ holiday no clean _ description in name moving a wooden cabinet for disposal with the help of another employee murder victim had his finger pressed down between the wall and the cabinet causing injury'], 'Accident Level': 2}, {'Description': ['country country _ 02 local y local _ 07 industry sector mining gender male employee union type employee critical risk others year 2016 month march day 12 weekday saturday 15 weekofyear 10 winter season 2016 summer is _ 16 holiday no clean _ description by victim manually moving a steel window cabinet for disposal with the skilled help of another employee the operator had his finger pen pressed down between the wall and the cabinet causing injury'], 'Accident Level': 2}, {'Description': ['country 2009 _ 04 local local _ 07 industry sector mining gender male employee type employee critical risk others year 2016 month march day 12 weekday saturday weekofyear 10 season summer is _ 03 no clean _ description by manually moving custom steel spoon for disposal with the help of another tool the operator had a finger pressed down between his wall above the cabinet any injury'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 07 industry sector mining gender neutral male employee type employee critical risk others year 2016 month march day 12 weekday vacation saturday weekofyear 10 season summer is _ 24 holiday no clean _ job description by manually moving a steel cabinet for disposal with either the help of another employee the operator is had his finger pressed down between between the wall cavity and the cabinet handle causing serious injury'], 'Accident Level': 2}, {'Description': ['Country Country_02 Local Local_07 Industry Sector Name Gender Male Employee Type Employee Critical Risk Others Year 2016 Month March Day 12 Sunday Saturday WeekofYear Christmas season Summer is_holiday No clean_description by manually moving 1 collapsed cabinet for disposal with the help of another employee the operator broke his back pressed down into the wall the broken cabinet causing injury'], 'Accident Level': 2}, {'Description': ['Country Country_02 Individual Local Local_07 Environment Industry Sector Mining Gender Male Employee Type Employee Class Critical Risk Others Year 2016 Month March Day August 12 Weekday Saturday WeekofYear 10 season Summer is_holiday No clean_description by manually moving a steel cabinet for safe disposal with the help of another local employee the shop operator actually had his finger pressed down between the metal wall and the cabinet thus causing injury'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description in circumstances that the staff was performing the rhyming of caving hw the m hw pipe was suspended approximately cm from the floor the assistant placed the stilson key no on the hw pipe to fit the pipe at a height of cm from the base of the rod holder which the operator operates the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of the assistants right hand to be caught between the stilson key and the base of the rod holder at the time of the event the collaborator used all his epps', 'Accident Level': 2}, {'Description': ["Country Country Country Local Region 01 Industry Sector Mining Sex Male Employee Type Third Party Critical Risk Manual Tools Year 2017 Month May Day 6 Weekday Saturday Weekend Year 18 Season Autumn is Holiday No clean description under the circumstances that the staff performed the rhymes of caving hw the m hw tube was suspended about cm from the ground the wizard placed the stilt key No. on the hw tube to the tube at a height of cm from the base of the rod holder, which the operator operated to push this tube back, causing the tube to slide, causing the tip of the fourth finger of the wizard's right hand was caught between the stilt key and the base of the rod holder at the time of the event the employee used all his tips"], 'Accident Level': 2}, {'Description': {'Description': 'The tip of the fourth finger of the assistants right hand was caught between the stilson key and the base of the rod holder. The collaborator used all his epps.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third language critical risk manual tools year 2017 month may day 6 weekday saturday weekofyear 18 season autumn is _ holiday employee relation _ description in circumstances that the staff was performing the rhyming of caving hw the m hw pipe was suspended approximately cm from the blade the assistant placed the stilson key back on the hw pipe to fit the pipe at a height of cm from the base of the rod holder which the operator rotated the chuck to slide this back causing the pipe to move causing the tip under the fourth finger of the assistants right hand to get caught between the master key and the base of the rod holder at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 01 industry sector mining occupation gender male occupation employee employee type third party critical risk manual tools year 2017 month may day 6 weekday saturday weekofyear 18 season autumn is _ holiday no clean _ description in possible circumstances that the staff professional was performing the unauthorized rhyming of caving hw the m hw pipe was suspended approximately cm forward from the floor the assistant placed the stilson key no on the hw pipe to fit the pipe at a height of cm from the base of the rod holder which the operator operates the chuck to slide on this back causing the pipe to slide causing the tip location of the fourth finger of the assistants own right hand to be caught between the stilson key and the base of the rod holder at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': ['country country _ 01 2011 local _ 01 industry sector mining gender male employee type 3rd party critical risk accounting tools year 2017 month may day 6 summer saturday october 18 season autumn is _ holiday 2007 clean _ description in circumstances that the staff was performing the rhyming of caving hw the m hw pipe was suspended approximately cm from the floor the assistant placed the stilson key no on the hw pipe to open the pipe at a height of cm from the base of the rod holder whereas the operator operates the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of the assistants right hand may be caught between the stilson knife and the base of the rod holder at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': ['country country _ year 01 virtual local local _ 01 industry sector mining gender male employee type third party critical risk manual tools year 2017 calendar month may day 6 weekday saturday weekofyear 18 spring season autumn is _ holiday no clean _ description in circumstances that the staff was actively performing the rhyming duty of caving hw the m hw pipe was suspended by approximately cm from the floor the assistant placed the stilson key no on the hw pipe to fit the slip pipe at a height of cm from the base of the rod holder using which the operator operates permitting the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of the assistants right hand to be caught between the stilson key and the base of the rod holder at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Male Male Employee Type Third Party Critical Risk Control Tools Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 November Date is_holiday No clean_description in circumstances where the staff was performing the rhyming of caving hw the m hw pipe was suspended approximately cm from the floor one assistant placed the stilson key no on the hw pipe socket fit the pipe at a height of cm from the base of the rod holder which the operator operates the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of that assistant right hand to be caught between the stilson key and the base of the rod set at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Job Type Person Third Party Critical Risk Worker Manual Tools Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description in circumstances that the staff was performing the rhyming of caving on hw the m hw pipe was suspended floating approximately cm from the toilet floor the assistant placed the stilson key no lever on the hw m pipe to fit near the pipe at a height of cm from the base of the rod holder which the operator normally operates the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of the assistants right hand to be caught between the stilson key and the base of the rod holder at the time of the event the collaborator used all his epps'], 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 4 Weekday Tuesday WeekofYear 40 season Spring is_holiday No clean_description in the probe bore bapdd around hours the polling assistant luciano da silva performing the maneuver of descending rods led the rod to the gutter but this when not leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his little finger was between the rod and the easel realizing that the shaft had returned he released it immediately but his little finger was partially hit by the rim of the rod against the easel resulting in a cut the auxiliary was taken to hospital and attended to the wound resulted in points and the was released for administrative activities', 'Accident Level': 2}, {'Description': ['Country Country Country Country Location 10 Sector Other Sex Male Employee Type Employee Critical Risk Other Year 2016 Month October Day 4 Weekday Tuesday WeekofYear 40 Season Spring is Holiday No clean description in the probe bapdd around hours the election worker Luciano da Silva, who performed the maneuver of the descending poles, led the pole into the gutter, but this, when he did not lean appropriately against the gutter to escape the easel, his hand had slipped and his little finger was between the pole and easel, when he realized that the shaft had returned, he released it immediately, but his little finger was partially hit by the edge of the pole against the easel, resulting in a cut that took the assistant to the hospital and took care of the wound that led to points, and was released for administrative work.'], 'Accident Level': 2}, {'Description': {'Description': 'The polling assistant luciano da silva performing the maneuver of descending rods led the rod to the gutter. His hand had slipped and his little finger was between the rod and the easel. The auxiliary was taken to hospital and attended to the wound resulted in points.'}, 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type employee critical risk others year 2016 month october day 4 weekday tuesday weekofyear 40 season spring is _ holiday no clean _ week in data probe bore bapdd around hours the polling assistant luciano da costa performing the maneuver of descending rods led the rod to the gutter but this when not leaning suitably came to escape through gutter returning toward an altar his hand had slipped and his little finger was between the rod and the easel realizing that the hand had returned he released it immediately but his little finger was then hit by the rim of the rod against the ring resulting in a cut the auxiliary was taken outside hospital and attended to the wound resulted in points and the was released for administrative activities'], 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type employee critical risk others year 2016 november month october day 4 weekday tuesday weekofyear 40 season spring is _ holiday no clean _ weather description in the polling probe bore bapdd around hours the polling assistant luciano da silva performing the maneuver of descending rods led the rod to the gutter but this when not leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his bad little finger was between the leading rod and the easel realizing that the shaft had returned he almost released it immediately but his little finger he was partially hit by the rim of the rod against the easel bone resulting in a cut the auxiliary was taken to hospital and attended to the bullet wound resulted in points and the was released for a administrative activities'], 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector registered gender male employee type employee critical risk others year 2016 month october day 4 weekday tuesday weekofyear 40 season spring is _ holiday no clean _ description in the probe bore bapdd around hours the polling assistant luciano da silva performing the task of descending rods led the crowd to the gutter but this when not leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his little finger was between the rod and the mayor realizing that the shaft had returned he released it immediately quickly his little finger was partially hit by the torque on the rod against the easel resulting in a cut the auxiliary was admitted to hospital quickly attended to the incident resulted in points and the was released for administrative activities'], 'Accident Level': 2}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender ratio male employee type employee critical risk others year 2016 month october day 4 weekday tuesday weekofyear 40 season spring is _ holiday no clean _ description in the probe bore bapdd around hours the polling assistant luciano da silva silva performing the maneuver of descending rods led the curved rod to the shallow gutter but this when not normally leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his little finger was pinched between the rod and the easel realizing that after the shaft had returned he released it immediately but his little finger was partially hit by the rim of the rod against the easel resulting where in either a cut the auxiliary was taken to hospital and attended to the wound resulted in points and fined the was released for administrative activities'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Sector_10 Industry Sector Others Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 4 Weekday Tuesday WeekofYear 40 season Spring is_holiday annual clean_description in the probe bore bapdd for hours the polling assistant luciano da silva performing the maneuver of descending rods led the rod to the gutter but this when not leaning suitably hard to escape the gutter returning toward the easel his hand had slipped and his little finger was between the rod behind the easel realizing that the shaft had returned had released it immediately but his middle finger was partially hit by the rim of the rod against the easel resulting in a cut the auxiliary was taken to hospital and attended to the wound only in points and the member released with administrative activities'], 'Accident Level': 2}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Contract Others Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 4 Weekday Tuesday WeekofYear 40 season Spring is_holiday No clean_description in the probe bore It bapdd around 2 hours the polling assistant luciano da g silva performing the maneuver part of descending rods led the rod to the gutter but this when not leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his little finger was between the rod and the easel quickly realizing that the shaft had returned he released it immediately but his soft little finger was partially hit by the rim casing of the rod against the easel resulting in a cut the auxiliary was taken to hospital for and attended to the wound resulted in points and the was released home for administrative activities'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month December Day 12 Weekday Monday WeekofYear 50 season Summer is_holiday No clean_description when performing the doosan rb equipment hammer repair the employee tries to remove the suspenders with the support of a pound rope at the moment of receiving the blow the brace or bolt causes a splinter to be released expelling and impacting on the lower left limb causing metal embedding in it the collaborator did not notice immediately', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month December Day 12 Weekday Monday Weekend Year 50 Season Summer is Vacation No Clean Description When executing the Doosan rb equipment Hammer repair, the employee attempts to remove the suspenders with the support of a pound rope at the moment of the blow, which causes the clamp or screw to trigger a splinter and strike the lower left extremities, causing a metal embedding that the employee does not immediately notice'], 'Accident Level': 2}, {'Description': {'Description': 'The employee tries to remove the suspenders with the support of a pound rope at the moment of receiving the blow the brace or bolt causes a splinter to be released expelling and impacting on the lower'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local time _ 04 industry sector mining gender male employee type employee critical risk others year 2016 month december day 12 weekday monday weekofyear 50 april summer is _ holiday no clean _ description when performing the class rb equipment hammer operation the employee tries to remove the suspenders with elastic brace of the pound rope at the moment of receiving the blow the brace or bolt causes a splinter being be released expelling and impacting on the lower leg limb causing metal embedding in it the worker did not notice immediately'], 'Accident Level': 2}, {'Description': ['country day country _ 01 local local _ 04 mining industry sector mining gender male female employee type employee critical risk others year during 2016 first month december day 12 weekday monday weekofyear 50 season summer is _ holiday no clean _ description when after performing the doosan rb equipment hammer repair the employee tries to remove half the suspenders with the support of a pound rope only at the moment of receiving the blow striking the brace or bolt causes a splinter to be released expelling and impacting on the lower left leg limb causing metal embedding in it the collaborator did not notice immediately'], 'Accident Level': 2}, {'Description': ['country 04 _ 01 local local _ 04 industry sector mining occupations male employee type xx critical risk others year 2016 month december day 12 calendar monday weekofyear 50 season summer is _ 10 no clean _ up when performing the doosan rb equipment hammer repair the employee tries to remove the suspenders with the support of a stretch rope at the moment of receiving the blow the brace or bolt causes critical splinter to be released expelling and impacting of the lower left limb where metal embedding in it the collaborator did not notice immediately'], 'Accident Level': 2}, {'Description': ['2015 country 1 country _ 01 local local _ 04 marine industry sector mining → gender male employee type employee • critical risk others business year 2016 month december day 12 weekday monday weekofyear 50 season summer is _ holiday no clean _ description when performing the doosan joint rb equipment hammer repair the employee temporarily tries to severely remove the suspenders with the support of a pound rope at the moment of receiving the blow the brace or bolt causes a splinter to be released expelling and impacting on the lower left limb causing metal embedding in it the repair collaborator did not notice immediately'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Labor Male Education Type Employee Critical Risk Others Year 2016 Month Month Day 12 Weekday Monday WeekofYear 50 Last Summer is_holiday No special_description when performing the doosan rb neck accident repair the employee tries to remove metal suspenders with the support of a pound rope at the end of attempting the blow the brace or bolt causes a splinter to be released expelling and impacting on the lower left limb causing metal embedding in it the collaborator did not notice immediately'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month December Day 12 Weekday Monday WeekofYear 50 season Summer 2016 is_holiday No clean_description when performing the doosan / rb equipment steel hammer repair the employee normally tries to remove one the suspenders with the support of a pound rope however at the moment of receiving the blow the brace or bolt causes a splinter to be released expelling and immediately impacting on either the officer lower left limb causing metal embedding in it the collaborator did to not notice immediately'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 3 Weekday Sunday WeekofYear 13 season Autumn is_holiday No clean_description during the plant stop scheduled for maintenance almost at the end of the change of the t fitting of the hdp pipe with a diameter of the resident enters the work zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the pvc pipe comes out of its support pipe with fine material of tailings weight kg and falls from a height of meters to the floor bounces and imprisons the resident engineer only the injured worker was in the lower part or line of fire', 'Accident Level': 2}, {'Description': ['Country Country Country Location Location 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month April Day 3 Weekday Sunday Day of the Week Week Week Year 13 Season Autumn is Vacation No clean description during the interruption intended for maintenance work, almost at the end of the change of the valve of the HDP pipe with a diameter of the inhabitant enters the working zone from below to supervise the work, at the moment four workers with harnesses were anchored, who manipulated the accessories in the upper part to tie the flanks of the HDP pipe and the PVC pipe with diameter, suddenly the PVC pipe comes out of its support pipe with fine material of tailings weight kg and bounces from a height of meters to the floor and locks the resident engineer, only the injured worker was in the lower part or in the line of fire'], 'Accident Level': 2}, {'Description': {'Description': 'During the plant stop scheduled for maintenance almost at the end of the change of the t fitting of the hdp pipe with a diameter of the resident enters the work zone from the bottom to supervise the work. The pvc pipe comes out of its support pipe with fine material of tailings weight kg and falls from a height of meters to the floor'}, 'Accident Level': 2}, {'Description': ['national country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk others year 31 month april chapter 3 weekday sunday weekofyear 13 season autumn is _ holiday no clean _ off during the plant stop scheduled for maintenance almost at the end of the change of the t fitting of the hdp pipe with a diameter of the resident around the work zone from his bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the production pipe comes out of its support pipe with fine material of tailings weight kg and falls from a height of meters to the floor bounces and imprisons the resident engineer only the one worker dies in the lower field or line of fire'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 01 industry sector heavy mining gender male employee type third party critical risk others year 2016 month april day 3 weekday sunday weekofyear 13 season autumn is _ holiday no clean _ description during the plant stop scheduled for maintenance almost at the end of 2016 the change of the t fitting of the hdp pipe with 2 a diameter of the resident enters to the work zone from the bottom to supervise the work in that line at the moment four workers anchored open with harness that were in operation the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the pvc pipe comes out most of its support a pipe with fine material of tailings weight kg and falls from a height of meters to the floor bounces and imprisons the resident engineer only the injured worker was injured in the lower part or line of fire'], 'Accident Level': 2}, {'Description': ['country country _ 04 local local _ 01 industry sector mining gender male worker type third party critical risk others year 2016 month april day 3 weekday sunday christmas 13 season autumn is _ holiday no clean _ description during the plant stop scheduled for maintenance almost at the end of the change of the t fitting of the hdp pipe with a diameter of the resident enters the work zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the lift pipe and pvc of diameter suddenly the pvc usually comes out wrapping its support pipe with fine material of tailings 85 kg and falls from a height of meters to extreme floor bounces and imprisons the resident engineer only the individual worker was inspecting the lower part or line of fire'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 01 industry sector mining industry gender male employee type third party critical risk others year 2016 month april day 3 weekday sunday weekofyear 13 season autumn is _ holiday no clean _ description during the plant operations stop scheduled for maintenance almost at the end dates of the vertical change of the t fitting of the hdp pipe with a diameter component of the resident enters the work load zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of diameter the hdp pipe and pvc of diameter suddenly the pvc pipe comes out of its support pipe with fine material of tailings weight kg weighs and falls from within a height of meters to the floor bounces and imprisons the resident engineer only the injured worker was in the lower part falling or line of fire'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Specialist Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 3 Weekday Sunday Autumn 13 season Autumn is_holiday No clean_description during the plant stop scheduled for maintenance almost at the end of the change of gear t fitting of the hdp pipe with a supervisor of the resident enters the work zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the pvc pipe comes out of its support pipe with fine material of tailings weight kg and falls from a height of meters across the floor by and imprisons of resident and only and injured worker was under the lower part or line of fire'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 3 Weekday Sunday WeekofYear 13 season Autumn Holiday is_holiday No clean_description during the plant stop scheduled for maintenance almost at the end of the change of the t fitting mechanism of the hdp pipe with a diameter one of the resident enters the work line zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the pvc pipe comes out of its support or pipe with fine copper material of tailings with weight kg and speed falls from a height of meters to the floor bounces and he imprisons the resident engineer only the injured worker was caught in the lower part or line of fire'], 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2017 Month January Day 17 Weekday Tuesday WeekofYear 3 season Summer is_holiday No clean_description during routine slimming activity of the kiln of the battery the employee began to remove the waste inside the crucible with the aid of a skimmer felt pain in the left shoulder', 'Accident Level': 2}, {'Description': ['Country Country _ 02 Local _ 08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Other Year 2017 Month January Day 17 Weekday Tuesday WeekofYear 3 season Summer is _ holiday No clean _ description during routine slimming activity of the oven of the battery the employee began to remove the waste inside the crucible with the skimmer feeling pain in the left shoulder'], 'Accident Level': 2}, {'Description': {'Description': 'The employee felt pain in the left shoulder during routine slimming activity of the kiln of the battery.'}, 'Accident Level': 2}, {'Description': ['census country _ 02 local local _ 12 industry sector metals gender male employee child employee critical risk others year 2017 month january day 17 weekday a weekofyear 3 season 3 is _ holiday no clean _ description during routine slimming activity of the kiln of waste battery the workers began to remove solid waste inside the crucible with the aid of a skimmer felt grip around the left shoulder'], 'Accident Level': 2}, {'Description': ['country 02 country _ 02 local 05 local _ 08 industry sector metals of gender male employee with type employee critical risk others year 2017 social month january date day 17 weekday tuesday weekofyear day 3 season summer is _ holiday no clean _ description job during routine slimming operation activity of the kiln of the battery the employee began to remove the waste inside the crucible with the aid of a skimmer felt pain in especially the left shoulder'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 08 industry sector single gender male employee type employee critical risk others year 2017 tuesday january day 17 weekday tuesday weekofyear 3 season summer school _ holiday log clean _ description during routine cleaning activity of the kiln remove the battery the employee began to remove its battery inside the crucible through the aid of a skimmer felt firmly in the left shoulder'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 08 industry sector metals gender male restricted employee type or employee minimum critical risk others 30 year 2017 current month january day 17 weekday tuesday weekofyear chapter 3 season summer is _ holiday no clean _ 1 description during the routine slimming activity of the whole kiln of the battery the employee began to remove the waste inside the crucible with the aid of a skimmer felt pain in the left facing shoulder'], 'Accident Level': 2}, {'Description': ['Country Country_02 Unit District_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Product Year 2017 3 January Day 17 Weekday Tuesday WeekofYear 3 April Summer is_holiday and clean_description during routine slimming activity of the kiln of nuclear battery as employee began to remove the waste of the crucible with the aid of a skimmer felt pain in the lower shoulder'], 'Accident Level': 2}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Gender Male Female Employee Type Employee Critical Risk Others Year 2017 Select Month January Day 17 Weekday Labor Tuesday WeekofYear 3 season Summer is_holiday No clean_description during routine slimming activity off of the concrete kiln of the battery the employee began to remove the waste away inside the crucible chamber with the aid of a skimmer yet felt pain in only the left medial shoulder'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month August Day 14 Weekday Sunday WeekofYear 32 season Winter is_holiday No clean_description in circumstances the drilling assistants proceeded to assemble the inner tube to the barel the injured person retracts the inner tube head to throw it manually towards the top of the catheter inclination to continue with the perforation in that moment the glove of the left hand is hooked in the speart point pushing his left hand until the edge of the box of the barel originating the injury at the time of the accident the injured employee used his rubber gloves and the work area was well lit', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month August Day 14 Weekday Sunday WeekofYear 32 Season Winter is Vacation No neat description under the circumstances under which the drill workers continued to mount the inner tube on the barel, the injured person pulls in the inner tube head to throw it manually towards the catheter tip in order to proceed with the perforation at the moment when the glove of the left hand is hooked into the spatula tip and presses his left hand to the edge of the bark that caused the injury at the time of the accident, the injured employee used his rubber gloves and the working area was well lit'], 'Accident Level': 2}, {'Description': {'Description': 'The drilling assistants proceeded to assemble the inner tube to the barel. The injured employee used his rubber gloves and the work area was well lit.'}, 'Accident Level': 2}, {'Description': ['by country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk others year 1 month august day of weekday sunday weekofyear 32 season winter is _ holiday no clean _ description in circumstances the drilling assistants failed to assemble the inner tube to the barel the injured person retracts the inner tube head to throw it manually towards the top of the catheter inclination to continue with further perforation in that moment the finger of the left hand is hooked in right speart point pushing his left finger until the edge of the box of the barel originating the injury at the time of previous accident the striking employee used his rubber gloves and the work area was well lit'], 'Accident Level': 2}, {'Description': ['country country _ class 01 local local _ 01 industry sector mining gender male employee type of third party critical risk others year 2016 month august day 14 weekday sunday day weekofyear 32 season winter season is _ holiday no clean _ description in circumstances the drilling assistants proceeded to assemble the inner tube to the barel the injured person retracts the inner tube head to throw it manually towards the top of the catheter inclination to continue with the perforation in at that moment the glove of the left hand is hooked in the speart point pushing his left hand until the edge of the drill box top of the barel originating the injury at the time of the initial accident the injured employee used exactly his rubber gloves gloves and the work area was well lit'], 'Accident Level': 2}, {'Description': ['country country _ 01 01 local _ 01 industry sector mining gender male occupations type third party worker risk others year 2016 month august day 14 weekday sunday weekofyear 32 season winter is _ holiday no clean _ description in circumstances the drilling assistants proceeded to assemble the middle tube to the barel the injured person retracts the inner tube head whilst throw it manually towards the top of the catheter inclination to continue with the perforation in that moment the glove of injured left hand is hooked in the speart point off his left hand until the edge of the box of the lid exposing the injury at the time of the accident the injured employee used his rubber tyre and the work area was well lit'], 'Accident Level': 2}, {'Description': ['country 02 country _ 01 local local _ 01 industry sector mining gender identified male employee type third party critical risk others year commencing 2016 month august day 14 weekday sunday weekofyear 32 season 17 winter is _ holiday no clean _ description • in circumstances the drilling assistants proceeded to assemble the inner tube tube to the barel the injured person carefully retracts the inner tube head to throw it manually towards the top of the catheter inclination to continue with operating the perforation in that moment the glove of the left hand is hooked in the speart point pushing his left hand until the edge of the box of the barel originating reveals the injury at the time of the accident the injured professional employee used his rubber gloves and the work area was well lit'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Construction Mining Gender Age Employee Social Third Party Critical Risk Others Year 2016 Month August Day 14 Weekday Sunday Saturday 32 season Winter Anti_holiday No clean_description in circumstances of drilling assistants proceeded with attach the inner tube to the barel the injured person retracts the inner tube head of throw it manually towards the top of the catheter inclination to continue with the perforation in that moment the glove of the left hand is used in the speart point pushing his left hand until the edge of the box of the barel originating the injury at the time of the accident the injured employee used his rubber gloves and the work area was well lit'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Incident Risk Others Year 2016 Month August Day 14 Weekday Sunday WeekofYear 32 season Winter is_holiday No clean_description in circumstances if the drilling assistants proceeded to assemble the inner tube to the barel the injured person retracts with the inner tube head to throw it manually towards the hard top of the catheter makes inclination to continue with the perforation in that moment the glove of the left hand is hooked lightly in the above speart point pushing his left hand until the edge of the box of making the barel originating the fatal injury at home the time of the accident the injured employee used his rubber gloves and the work area was well lit'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 21 Weekday Sunday WeekofYear 7 season Summer is_holiday No clean_description the worker yaranga while working with barretilla in stop level while unloading metal mesh on the basket of an ampoloader with his operator juan barretilla is embedded on safety boot reacting immediately the worker removing the limb with force and managing to release the foot but producing a wound on the right foot', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 21 Weekday Sunday Weekend Year 7 Season Summer is Vacation No clean description of the worker Yaranga while working with Barretilla in stop level, while the discharge of metal mesh is embedded on the basket of an ampoloader with its operator juan barretilla on safety boots, immediately the worker who removes the limbs by force and manages to loosen the foot, but produces a wound on the right foot'], 'Accident Level': 2}, {'Description': {'Description': 'The worker yaranga while working with barretilla in stop level while unloading metal mesh on the basket of an ampoloader. The worker removing the limb with force and managing to'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee for third party critical risk others year 2016 month one day 21 weekday sunday weekofyear 7 april summer is _ 03 no clean _ description the planet yaranga while working with barretilla in floor level while unloading metal mesh on the basket of an ampoloader with his operator as barretilla is embedded on safety boot reacting as the hand removing the limb with force and managing to release the foot but producing a wound on the second foot'], 'Accident Level': 2}, {'Description': ['country country _ 01 local country local _ 01 mineral industry sector mining employee gender male employee type third party critical risk others year 2016 month february day 21 weekday summer sunday weekofyear of 7 • season summer is _ holiday no clean _ description of the worker yaranga while being working alone with barretilla in stop level while unloading metal mesh on the basket of an electric ampoloader with his operator juan barretilla is embedded on safety boot reacting immediately the worker removing the limb with force and managing to release the foot but producing a wound on the right foot'], 'Accident Level': 2}, {'Description': ['n country _ 01 local local _ 01 industry manual mining gender male employee labor third party critical risk others year 2016 month february day 21 weekday sunday weekofyear 7 season summer is _ holiday no clean _ description the worker yaranga while working with barretilla in difficulty level while unloading rubber mesh on the basket of an ampoloader with his operator juan barretilla is embedded on safety boot reacting immediately if worker removing the limb with force and fails to release any foot could cause a wound on the right foot'], 'Accident Level': 2}, {'Description': ['country country _ 01 01 local local _ 01 industry sector mining gender male employee credit type third party critical risk others year 2016 fiscal month february 12 day 21 weekday sunday weekofyear 7 season 8 summer is _ holiday no clean _ description the worker yaranga found while working with andres barretilla in stop level while unloading metal mesh on the basket trunk of an ampoloader with his operator juan barretilla is embedded on safety pants boot reacting immediately the worker removing the limb with little force and managing to release the foot but producing a wound on the right foot'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third World Workers Risk Others Year 2016 Month February Day 21 Weekday Sunday WeekofYear Summer season Summer is_holiday No clean_description the guy yaranga while working with barretilla in stop level while unloading metal mesh behind the basket is an ampoloader with his hands juan barretilla is embedded on safety boot reacting immediately the occupation removing the limb with force before managing to release the foot thus producing a wound on the right foot'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Contract Gender Male Employee Type Third Party Agent Critical Risk Others Contract Year 2016 Month 2017 February 27 Day 21 Weekday Sunday WeekofYear 7 season Summer is_holiday No clean_description the worker yaranga while working hand with barretilla in stop level while unloading metal mesh on the working basket of an ampoloader with his hand operator juan barretilla is embedded on safety boot reacting immediately the worker is removing the limb with force and managing to release the foot but producing immediately a wound on the right foot'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 6 Weekday Saturday WeekofYear 5 season Summer is_holiday No clean_description at rp of level in circumstances where the workers of the company were performing the task of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end being on the working scaffolding at the moment that mr nilton lifts the end of the hq pipe that is in the scaffolding to position in the frame the upper part of the pipe comes out of the pulley falling and striking the right hand of the worker jhonatan against bolts that has the lateral part of the same frame causing the injury described', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 6 Weekday Saturday WeekofJahr 5 Season Summer is _ holiday No clean _ description at rp of level in circumstances when the workers of the company were performing the task of diamond drilling the assistants jhonatan hurt and nilton were preparing to increase the hq perforation pipe on the scaffolding mr jhonatan lifts one end of the tube and support it on the pulley of the tool frame the other end being on the working scaffolding when mr nilton lift the end of the hq pipe that is in the scaffolding to position the upper part of the pipes comes out of the riley falling and strike the right hand of the worker jhonatan against bolts that has the lateral part of the same frame the damage described'], 'Accident Level': 2}, {'Description': {'Description': 'Worker jhonatan injured during diamond drilling accident. Worker nilton was preparing to increase the hq perforation pipe located on the scaffolding. The upper part of the pipe came out of the pulley falling and striking the right hand of the worker jhonanatan against bolts that has the lateral part of same frame.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ the industry sector mining gender male employee type third party critical risk others year 2016 month february day 6 weekday saturday weekofyear 5 season summer is _ holiday no clean _ description at rp of level in circumstances where the managers of the company were performing the task of diamond drilling the union jhonatan injured and nilton delayed preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts left leg of the tube and supports it on the pulley of the equipment frame the other side being on the working scaffolding at the moment that mr nilton lifts the end of the hq bucket that is in the scaffolding to position in the frame the upper part of the pipe comes out of the pulley falling and striking the big hand of the worker jhonatan against bolts that has the lateral part of the same frame causing the injury so'], 'Accident Level': 2}, {'Description': ['country 16 country _ 2015 01 local local _ 04 industry sector mining gender male employee type third party critical risk others 1 year 2016 month february day 6 weekday saturday weekofyear 5 season 11 summer is _ only holiday no clean _ description at rp of level in circumstances where the workers of the company were performing the task function of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located located on the construction scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end being on the working scaffolding at the right moment that mr nilton lifts the end of the hq pipe that is in the scaffolding to position in the frame the upper part of the pipe comes out of the pulley falling and striking the right hand knee of the worker jhonatan against bolts that has the lateral part of the same frame causing the injury described'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector key gender male employee type third party critical risk others year 2016 month february day 6 weekday saturday weekofyear 5 season 2016 is _ holiday no clean _ description at rp trading level in december where the workers of the company were performing the task of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end resting on the working scaffolding at the moment that bob nilton lifts the end of steel hq pipe that is in the scaffolding to position in the frame the upper lip of the pipe comes out of the pulley falling and striking the right hand of the upper jhonatan against bolts that oppose the lateral part of the same frame causing the injury described'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry 3rd sector mining gender male employee type third party critical risk others year 2016 winter month february day 6 weekday saturday weekofyear 5 season summer is _ holiday no clean _ description occurs at rp of level in circumstances where the workers of the company were performing poorly the task of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end being on securing the working scaffolding at precisely the moment that mr nilton lifts the end of the hq pipe that is in the scaffolding to position in the frame the upper part movement of the pipe comes out of the pulley falling and striking the right hand of the worker jhonatan against bolts that has the lateral part moving of the same frame causing the internal injury being described'], 'Accident Level': 2}, {'Description': ['Country Region_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 6 Weekday Saturday WeekofYear 5 season Summer is_holiday No clean_description at end of Monday in circumstances where the workers of the company were performing the task of properly drilling the assistants this injured and nilton were preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end being on nearby working scaffolding at the moment that mr nilton lifts the end of the hq pipe that lying in the scaffolding to position in the frame the upper part underneath the pipe comes out of a pulley falling down striking the right hand of the worker jhonatan against bolts that has the lateral part of the same frame causing the injury described'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Male Employee Type Third Party Critical Risk Management Others Year 2016 Month February Day March 6 Weekday Saturday WeekofYear 5 season Summer is_holiday No clean_description at rp of level in circumstances where the workers of the chemical company were performing the task of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located on to the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame for the other end being on the working scaffolding at the moment seeing that mr nilton lifts the end of the hq pipe that is in of the scaffolding to position in the frame the upper part of the pipe comes out of the pulley falling and striking under the right hand of the worker jhonatan against bolts that has the lateral part extension of the same frame causing the injury described'], 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Burn Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is_holiday No clean_description during the maintenance of the peristaltic pump bp to change the internal hose the rupture tubing of the reserve pump bp was disrupted after it started to operate designing solution heated towards the employee reaching his left forearm causing a burn', 'Accident Level': 2}, {'Description': ['Country Country _ 02 Local _ 05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Burn Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is _ holiday No clean _ description during the maintenance of the peristaltic pump bp to change the internal hose the rupture pipes of the reserve pump bp was broken after it started to operate design solution heated towards the employee reaching his left forearm causing a fire'], 'Accident Level': 2}, {'Description': {'Description': 'The rupture tubing of the reserve pump bp was disrupted after it started to operate designing solution heated towards the employee reaching his left forearm causing a burn.'}, 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 05 industry sector metals gender male employee type employee critical risk the year 2017 month b day special weekday monday weekofyear 7 season summer day _ holiday no clean _ description during the maintenance of the peristaltic pump bp to change the internal hose the rupture tubing of the reserve pump system was disrupted after technician failed to give designing solution heated towards the employee reaching his left forearm the neck burn'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 05 industry sector metals gender male employee type employee critical risk for burn year 2017 fiscal month february day 13 weekday monday weekofyear 7 season summer is _ holiday no clean _ description during inspection the maintenance of the peristaltic reserve pump bp to be change the internal hose the rupture tubing of the the reserve pump bp was not disrupted after it started to operate designing solution heated towards the main employee reaching his left forearm causing out a second burn'], 'Accident Level': 2}, {'Description': ['country country _ 02 local local _ 05 industry sector metals gender male employee type employee minimum risk burn year 2017 month february day 13 weekday monday weekofyear 7 sunday registration is _ holiday no clean _ description an overnight maintenance of the peristaltic pump bp to change the internal hose the hydraulic tubing of the hydraulic pump bp was saved after it continued to operate designing solution heated towards the employee reaching his left forearm causing excessive burn'], 'Accident Level': 2}, {'Description': ['country 14 country _ 02 local local _ 05 industry limited sector shield metals gender male employee type employee critical risk burn year 2017 month february day 13 weekday monday weekofyear 7 season summer is _ 33 holiday no clean _ description during the maintenance procedure of the peristaltic oil pump bp to change the internal hose the rupture tubing of the reserve gas pump bp was disrupted after which it started to operate designing solution heated towards the incoming employee reaching towards his left forearm causing a burn'], 'Accident Level': 2}, {'Description': ['Country Country_02 State Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Burn Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 Days Summer is_holiday No clean_description With the maintenance of the peristaltic injection bp to change the internal hose the rupture tubing of the reserve pump hose was disrupted after it ceased to operate such solution heated towards this employee reaching his left forearm resulting significant burn'], 'Accident Level': 2}, {'Description': ['Country Brief Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Disability Employee Critical Risk Burn Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season 8 Summer is_holiday No clean_description during the maintenance of the peristaltic treatment pump bp to and change the reserve internal hose the rupture tubing of the reserve pump bp was disrupted after how it started to operate designing solution heated towards the employee reaching behind his left lower forearm causing a small burn'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 11 Weekday Friday WeekofYear 10 season Summer is_holiday No clean_description in circumstances that two workers of the company incimmet made the loading of explosives using an equipment anfoloader in a front of the work sustained with shotcreterepentinamente of the right superior part of the crown a piece of rock of approx kg mxmxm impacting on the basket and on the back of the helper who was in the basket suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which impacts the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month March Day 11 Weekday Friday WeekofYear 10 season Summer is _ holiday No clean _ description in situation that two workers of the company incimmet made the load of explosives using an equipment anfoloader in a front of the work supported with shotcreterepentinamente of the right superior part of the crown a piece of ca.kg mxmxm impact on the basket and on the back of the helper who was hanging in the basket at a height moment later a block of rock is loose from the wall of the gable ca.kg mxmxm which impacts the ampoloader team and part of this block injuring the operator of the ampoloader team who was standing the equipment anfoloader has a cabin with protection drops and fops at the time of the accident workers used helmets and safety boots both suffered polyontusions and minor scoria.'], 'Accident Level': 2}, {'Description': {'Description': 'Two workers of the company incimmet made the loading of explosives using an equipment anfoloader in a front of the work. Both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries.'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male and paid third party critical risk others year 2016 month march day 11 weekday friday weekofyear 10 season summer is _ holiday no clean _ description in circumstances that two workers of the company incimmet made the loading of food using an equipment anfoloader in a front of the work facility with shotcreterepentinamente of the right superior part of the crown a piece of rock fell approx kg mxmxm impacting on the basket and on the back of the helper that was in the house suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which killed the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and ropes at the time of the accident both workers used helmets and safety boots having suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party with critical risk others year 2016 month march day 11 weekday or friday weekofyear 10 season summer 1 is _ holiday no clean _ description in circumstances that two workers of the company from incimmet made the loading of explosives using an equipment anfoloader in a front of the work sustained with dynamite shotcreterepentinamente of structure the right superior part of the crown a piece of rock of approx kg mxmxm impacting on the basket and on the back of structure the helper who was in the basket suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which impacts the ampoloader team and part of this structural block injures the operator of the ampoloader team who was now standing on the ground the power equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee or third party job risk others year 2016 month march day 11 lunar friday weekofyear 10 december 2016 is _ holiday no clean _ description in circumstances that two workers of the company incimmet made the loading of explosives using explosive equipment anfoloader in a front of the mattress sustained with shotcreterepentinamente of the right superior portion of the crown a piece of rock of approx kg mxmxm impacting off the basket and injuring the back of the helper who was in the basket suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which impacts the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party mine critical risk others year 2016 month march day 11 weekday friday weekofyear 10 season 14 summer is _ holiday morning no tomorrow clean _ 06 description in circumstances that two workers of the company incimmet made use the loading of gas explosives using an equipment anfoloader in a front of the work sustained with shotcreterepentinamente of the right superior part of the crown a piece of rock of approx kg mxmxm impacting on underneath the basket and on the back face of the helper who was in the basket suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which impacts the ampoloader team and part of this block injures the emergency operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third category Critical Risk Others Year 2016 Month March Day 24 hours Friday WeekofYear 10 season Summer is_holiday No clean_description in circumstances that two workers from the company incimmet made the loading of explosives using an equipment anfoloader in a front of the work sustained with exception of the right superior part of the crown a piece of rock of 6 kg mxmxm impacting on the basket and on the back of the helper who was in the basket suspended at m height moments later one block of rock is detached from this side of the gable approx kg mxmxm which impacts the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and protection boots both suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': ['Country Country_01 Contact Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 March Month March Day 11 Weekday Friday WeekofYear 10 season Summer 2017 is_holiday No one clean_description in circumstances that two workers of the company incimmet made the loading of explosives using an equipment anfoloader in a front of section the work sustained with shotcreterepentinamente of the right superior part of the crown a piece of rock of approx kg mxmxm impacting on the basket and on him the back of the helper who was in the working basket suspended at m height some moments later further a block of rock is detached from the wall of the gable approx kg M mxmxm which impacts the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 10 Weekday Monday WeekofYear 41 season Spring is_holiday No clean_description being approx hrs mr eliseo secondary crushing operator when retiring to his snack finds the gate of the chute of strip open and when approaching to close the gate in that at that moment the operator mr samuel who was on the upper platform coordinates with the operator of the control room the start of strip at that moment the startup product projects a particle xxcm impacting on the flange of the gate and projecting to towards the height of the lenses and respirator of mr eliseo', 'Accident Level': 2}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month October Day 10 Weekday Monday WeekofYear 41 Season Spring is Holidays No clean description is about hours Mr. Eliseo Secondary crusher, when he retires to his snack bar, finds the gate of the strip open and when he approaches to close the gate, that at that moment the operator Mr. Samuel, who was on the upper platform, coordinates with the operator of the control room the beginning of the strip at that moment, the startup product projects a xxcm particle that acts on the flange of the gate and pushes towards the height of the lenses and the ventilator of Mr. Eliseo.'], 'Accident Level': 2}, {'Description': {'Description': 'The startup product projects a particle xxcm impacting on the flange of the gate and projecting to towards the height of the lenses and respirator of mr eliseo. At that moment the operator mr samuel who was on the upper platform coordinates with the operator'}, 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector employee gender male employee type employee critical risk may year 2016 month october day 10 weekday monday weekofyear 41 season spring is _ holiday no clean _ description being approx hrs mr eliseo secondary crushing operator when retiring to his snack finds the gate of southern chute of strip open and when approaching to close the gate in that at every moment the operator boy samuel who was on the upper platform coordinates with his operator of the control room the start of strip opening that moment the startup product projects a hole xxcm impacting on the flange of small gate and projecting to towards the height of the lenses through respirator of mr eliseo'], 'Accident Level': 2}, {'Description': ['country country _ 01 local local _ 04 industry sector mining operators gender male employee type employee critical risk others year 2016 month october 15 day 10 weekday monday weekofyear 41 season spring is _ season holiday no clean _ description being approx hrs mr eliseo secondary crushing operator when retiring to his morning snack finds the gate of the chute of strip open and when approaching to close the gate in fact that at that same moment the operator mr samuel who was on the upper platform coordinates with the operator of the control room the safe start of strip at that moment the startup product projects a particle xxcm impacting on the flange foot of the back gate and projecting to towards the height of the lenses source and respirator of mr eliseo'], 'Accident Level': 2}, {'Description': ['country country _ 01 • local _ 04 industry sector mining gender male employee type employee critical worker others year 2016 month october day 10 weekday monday weekofyear 41 season spring is _ holiday no clean _ holidays being approx hrs mr eliseo secondary crushing operator when retiring to his snack finds the gate of the start of strip open and when approaching to close the gate in that at that moment the operator mr samuel who was on the loading platform coordinates towards the operator inside the control room the start of strip at that node whereby startup product projects a particle xxcm impacting on electrical flange of the gate and projecting to towards the height of the lenses and respirator of mr eliseo'], 'Accident Level': 2}, {'Description': ['country 04 country _ 01 local local _ 04 industry sector mining gender male employee limited type employee critical risk others year 2016 month october day 10 bs weekday monday weekofyear 41 season spring is _ holiday no clean _ description being approx hrs mr eliseo secondary crushing operator notes when retiring to his snack finds the gate of the chute of strip open and when approaching approaching to close the gate in that at that moment the operator mr samuel who was on the upper platform coordinates with the operator of closing the control room the start of strip at that particular moment the startup product projects a particle xxcm impacting on the flange of the gate and projecting to south towards the height limit of the lenses and respirator of spade mr eliseo'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day Day Weekday Monday WeekofYear 41 season Spring is_holiday No date_description being 10 hrs Mar eliseo secondary crushing operator when retiring to check snack finds the gate of first chute of strip open and when approaches to close the wire in that at that moment the previous mr samuel who was on the upper platform coordinates with the operator of the control room the start of strip at that moment the startup product projects a particle xxcm impacting on the flange of the gate and projecting to towards the height and the lenses and respirator of mr eliseo'], 'Accident Level': 2}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 10 Weekday Monday WeekofYear 41 winter season Spring is_holiday No clean_description being approx hrs mr eliseo or secondary crushing operator when retiring to his snack finds the gate of the chute start of strip open and when approaching to close the gate in that at that moment the operator mr samuel who originally was on or the small upper platform coordinates with the operator on of the control room the very start of strip crushing at that moment the startup product projects a particle xxcm impacting on the flange of the gate and projecting to towards the height of the lenses and respirator of mr eliseo'], 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month December Day 31 Weekday Saturday WeekofYear 52 season Summer is_holiday No clean_description being approximately pm alpha operator mr ronald was heading to mine when he decides to stop the equipment to accommodate the lights left side manipulating the support of the lighthouse catching his fifth finger of the right hand with the protection grid and support', 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2017 Month June Day 19 Weekday Monday WeekofYear 25 season Autumn is_holiday No clean_description during the execution of the task of assembling the box of testimony boxes in the area of bonsucesso around am orlando research driller geosol trying to fit two parts of the trestles a third piece fell on his hand which was on the piece he held causing a small trauma to his left thumb the employee was referred to so lucas hospital paracatu ltda and attended and released without leaving work soon after', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Cut Year 2017 Month January Day 8 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description at am the deslaminator stops untimely then the operator lowers and locks the machine to verify the failure detecting locking of the sheet between the basket and the manipulator the operator tries to arrange the sheet manually and when pulling the sheet this one cuts the palm of the right hand with the edge of the sheet is referred to the medical center for attention', 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_09 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Manual Tools Year 2016 Month April Day 4 Weekday Monday WeekofYear 14 season Autumn is_holiday No clean_description when it opens the suction valve of the bo acid pump the cable of the same pump comes loose by pressing the th finger of the employees left hand against the tubing causing a fracture in the distal phalanx photos', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_11 Industry Sector Others Gender Female Employee Type Employee Critical Risk Others Year 2016 Month September Day 12 Weekday Monday WeekofYear 37 season Spring is_holiday No clean_description in the city of conchucos of ancash participating in a patronal feast representing the company was mounted on a horse as part of the ceremony throwing fruits and toys to the people attending this public event the noise of the materials pyrotechnics and people trying to collect the gifts caused the horse in front and very close to her horse to be frightened and kicked back hitting the lower limbs', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Pressed Year 2016 Month July Day 4 Weekday Monday WeekofYear 27 season Winter is_holiday No clean_description at am mr frank with the support of another mechanic was preparing to place on the floor a metal part called the rear bridge of the forklift at that moment the part moving part moves generating a blow to the middle finger of the left hand', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month March Day 6 Weekday Sunday WeekofYear 9 season Summer is_holiday No clean_description at a time when a worker and another partner were preparing to move an oil cylinder gallons on a mobile platform mounted on rails platform weighing approximately kg it is derailed leaves the rail in order to place the platform on the rail both workers lift the platform and in those instants the right hand of one of them is trapped between the rail and the platform structure where it was held metallic tube protruding from the platform this accident caused a bruised wound on the index finger of the right hand there was no fracture at the time of the accident they both wore leathertype safety gloves', 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 9 Weekday Saturday WeekofYear 27 season Winter is_holiday No clean_description during execution of drilling on the target bolt brjcldd made by the company servitecforaco probe at on july the official josimar da silva in the moment of the maneuver to fish material when removing the feeder of water during movement of the winch realized that the safety chain was loose and could curl in the rod in performing the chain removal movement he placed his left hand between the hose and the cap of the hydraulic plate with the unlocking of the inner tube there was an abrupt movement of the chain pushing his hand towards the hydraulic plate causing an injury to the ring finger of this hand the lesion caused a cut in the th quirodactyl with a need for suture of points to close the cut', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month November Day 19 Weekday Saturday WeekofYear 46 season Spring is_holiday No clean_description the workers csar injured and nilton receive the order of their immediate supervisor romn to carry out the assembly activity of a brace length m approximate weight kg of the structure of the nro belt said collaborators lift the brace and approach it to the installation point leaving one end on the ground and the other resting on the corner of the pedestal approximate height of cm after carrying out the planning of the work the injured person lifts the end part that was on the floor to turn and position it for assembly at that moment the other end falls generating the imprisonment of the fingers of the left hand staff is taken to the medical center by the supervisor', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 29 Weekday Friday WeekofYear 17 season Autumn is_holiday No clean_description mr jesus operator of the concrete throwing team alpha n was shooting shotcrete in the cx work nv ob applying m he realizes that the additive did not come out in the mix directing to lift the cover of the passage valve cm x cm of inch of thickness approximately kg verifying that the valve was open release the lid and it hits to the third finger of the left hand against the base causing the injury', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month August Day 12 Weekday Friday WeekofYear 32 season Winter is_holiday No clean_description during ore transport works from op to bines after having filled the tenth mining car with ore the assistant positioned on the platform of the hopper op places a wooden board between the pistons of the chain to avoid the fall of fines into the track at which time a fragment of rock cmxcm x cm kg rolls by the load and hits the distal phalanx of the fourth finger of the left hand the assistant at the time of the accident was wearing safety gloves pad type the hopper op at the time of the accident was with zero energy', 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month February Day 27 Weekday Monday WeekofYear 9 season Summer is_holiday No clean_description when performing cleaning activity of the area near the tc grinding the employee was handling a block of triangular shaped rock measuring b cm x h cm x e cm during the movement he lost his balance by falling with the rock on the thumb of his left hand injuring him', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2016 Month July Day 8 Weekday Friday WeekofYear 27 season Winter is_holiday No clean_description being h approx hours the operator fernando during the opening of wagons finds a hardened stake and uses a bar of approx m to remove it at that moment he presses the bar and hits his hand', 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month March Day 12 Weekday Saturday WeekofYear 10 season Summer is_holiday No clean_description by manually moving a steel cabinet for disposal with the help of another employee the operator had his finger pressed down between the wall and the cabinet causing injury', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Manual Tools Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description in circumstances that the staff was performing the rhyming of caving hw the m hw pipe was suspended approximately cm from the floor the assistant placed the stilson key no on the hw pipe to fit the pipe at a height of cm from the base of the rod holder which the operator operates the chuck to slide this back causing the pipe to slide causing the tip of the fourth finger of the assistants right hand to be caught between the stilson key and the base of the rod holder at the time of the event the collaborator used all his epps', 'Accident Level': 2}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 4 Weekday Tuesday WeekofYear 40 season Spring is_holiday No clean_description in the probe bore bapdd around hours the polling assistant luciano da silva performing the maneuver of descending rods led the rod to the gutter but this when not leaning suitably came to escape the gutter returning toward the easel his hand had slipped and his little finger was between the rod and the easel realizing that the shaft had returned he released it immediately but his little finger was partially hit by the rim of the rod against the easel resulting in a cut the auxiliary was taken to hospital and attended to the wound resulted in points and the was released for administrative activities', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month December Day 12 Weekday Monday WeekofYear 50 season Summer is_holiday No clean_description when performing the doosan rb equipment hammer repair the employee tries to remove the suspenders with the support of a pound rope at the moment of receiving the blow the brace or bolt causes a splinter to be released expelling and impacting on the lower left limb causing metal embedding in it the collaborator did not notice immediately', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 3 Weekday Sunday WeekofYear 13 season Autumn is_holiday No clean_description during the plant stop scheduled for maintenance almost at the end of the change of the t fitting of the hdp pipe with a diameter of the resident enters the work zone from the bottom to supervise the work in that at the moment four workers anchored with harness that were in the upper part manipulating the accessory t to tie the flanges of the hdp pipe and pvc of diameter suddenly the pvc pipe comes out of its support pipe with fine material of tailings weight kg and falls from a height of meters to the floor bounces and imprisons the resident engineer only the injured worker was in the lower part or line of fire', 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2017 Month January Day 17 Weekday Tuesday WeekofYear 3 season Summer is_holiday No clean_description during routine slimming activity of the kiln of the battery the employee began to remove the waste inside the crucible with the aid of a skimmer felt pain in the left shoulder', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month August Day 14 Weekday Sunday WeekofYear 32 season Winter is_holiday No clean_description in circumstances the drilling assistants proceeded to assemble the inner tube to the barel the injured person retracts the inner tube head to throw it manually towards the top of the catheter inclination to continue with the perforation in that moment the glove of the left hand is hooked in the speart point pushing his left hand until the edge of the box of the barel originating the injury at the time of the accident the injured employee used his rubber gloves and the work area was well lit', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 21 Weekday Sunday WeekofYear 7 season Summer is_holiday No clean_description the worker yaranga while working with barretilla in stop level while unloading metal mesh on the basket of an ampoloader with his operator juan barretilla is embedded on safety boot reacting immediately the worker removing the limb with force and managing to release the foot but producing a wound on the right foot', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 6 Weekday Saturday WeekofYear 5 season Summer is_holiday No clean_description at rp of level in circumstances where the workers of the company were performing the task of diamond drilling the assistants jhonatan injured and nilton were preparing to increase the hq perforation pipe located on the scaffolding mr jhonatan lifts one end of the tube and supports it on the pulley of the equipment frame the other end being on the working scaffolding at the moment that mr nilton lifts the end of the hq pipe that is in the scaffolding to position in the frame the upper part of the pipe comes out of the pulley falling and striking the right hand of the worker jhonatan against bolts that has the lateral part of the same frame causing the injury described', 'Accident Level': 2}, {'Description': 'Country Country_02 Local Local_05 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Burn Year 2017 Month February Day 13 Weekday Monday WeekofYear 7 season Summer is_holiday No clean_description during the maintenance of the peristaltic pump bp to change the internal hose the rupture tubing of the reserve pump bp was disrupted after it started to operate designing solution heated towards the employee reaching his left forearm causing a burn', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 11 Weekday Friday WeekofYear 10 season Summer is_holiday No clean_description in circumstances that two workers of the company incimmet made the loading of explosives using an equipment anfoloader in a front of the work sustained with shotcreterepentinamente of the right superior part of the crown a piece of rock of approx kg mxmxm impacting on the basket and on the back of the helper who was in the basket suspended at m height moments later a block of rock is detached from the wall of the gable approx kg mxmxm which impacts the ampoloader team and part of this block injures the operator of the ampoloader team who was standing on the ground the equipment anfoloader has a cabin with protection rops and fops at the time of the accident both workers used helmets and safety boots both suffered polyontusions and minor scoria injuries', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month October Day 10 Weekday Monday WeekofYear 41 season Spring is_holiday No clean_description being approx hrs mr eliseo secondary crushing operator when retiring to his snack finds the gate of the chute of strip open and when approaching to close the gate in that at that moment the operator mr samuel who was on the upper platform coordinates with the operator of the control room the start of strip at that moment the startup product projects a particle xxcm impacting on the flange of the gate and projecting to towards the height of the lenses and respirator of mr eliseo', 'Accident Level': 2}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is _ holiday No clean _ description in the area of maestranza the mechanical hurt was operating the bank drill a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanical albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill lifts the chuck and albino does the iron and verifies that it is fine and communicates they will restart with the other holes that moment the victim without apparent cross his left arm with the drill on and is caught by the drill in his work clothes causing the injuries.'], 'Accident Level': 3}, {'Description': {'Description': 'Mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip. Victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described.'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 2017 month may · 16 weekday tuesday weekofyear 20 season autumn is _ holiday no clean _ description in the area of machine tools of the maestranza the mechanic injured was operating a bench drill drilling a metal jacket of x x lining to track in the skip this moment he was accompanied towards the mechanic albino who manipulated the jacket and directed a maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis points the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other after this moment the victim without apparent reason crosses his left arm with its drill on and is struck by the drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 2017 month may friday day 16 weekday november tuesday weekofyear 20 season autumn 2017 is _ holiday no clean _ description in the area of machine tools of the maestranza the mechanic however injured was operating the bench drill drilling a metal jacket out of x x a lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on being the right side of the drill mr to albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill held on and is caught by inserted the drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk index year 2017 month may day 16 weekday tuesday weekofyear 20 season autumn is _ holiday no clean _ description about the area of machine tools of the maestranza factory mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the man albino who manipulated the jacket then directed the bolts on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the depth of the other holes that moment the technician without apparent reason crosses his left arm with the drill on and get caught by some drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 09 03 industry sector mining gender male employee type employee critical risk others year 2017 month may day 16 weekday or tuesday weekofyear 20 season autumn is _ holiday no clean _ 00 description drill in the garage area of machine tools of the maestranza juan the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on till the right thumb side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino correctly pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes and that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May Day 16 day Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill applying a metal jacket of x x lining to material in the skip this moment he was accompanied by other mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and reveals that everything is fine and communicates that they will restart until the return of the other holes that moment the victim on apparent reason crosses his left arm with the drill head and is caught by the drill in his work clothes to the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local II Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May 14 Day 16 Weekday After Tuesday 28 WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the builder maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who tightly manipulated the jacket and directed the maneuvers on the right side of the drill mr albino who tells him to stop operating the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling phase of the other holes that moment the victim without apparent formal reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 18 Weekday Friday WeekofYear 11 season Summer is_holiday No clean_description approximately at am in circumstances that the messrs of the truck crane and william de la cruz culminated the shipment of blocks of metal plates with an approximate weight of kg mr william de the cross rigger climbs onto the truck to remove the sling places both feet under the stretcher that supported the metal plates at that moment the central part of the stretcher is broken as a result of which the two feet are imprisoned producing the injury', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month March Day 18 Weekday Friday WeekofYear 11 season Summer is _ holiday No clean _ description about at circumstances that culminated in the gentlemen of the truck crane and William de la Cruz shipping metal plates with an approximate weight of kg mr William de the Cross Rigger climbs onto the truck to remove the noose with both feet under the stretcher that supported the metal plates at that moment, the central part of the stretcher is broken, causing the two feet to be trapped, causing the injury'], 'Accident Level': 3}, {'Description': {'Description': 'The accident took place during the shipment of metal plates with an approximate weight of kg. The central part of the stretcher is broken as a result of which the two feet are imprisoned producing the injury.'}, 'Accident Level': 3}, {'Description': ['country country _ 01 activity local _ 04 industry sector mining gender male employee and third party critical risk others year 2016 month march day 18 long friday weekofyear ending season 23 is _ holiday no clean _ description approximately at am in circumstances that the messrs of the truck crane and luis de la cruz culminated the shipment of blocks of metal plates with an approximate weight of kg mr william de the cross rigger climbs onto the truck to remove the sling places both feet under the stretcher that supported three metal plates of that moment the central part of the stretcher is broken as a result of which the other feet are broken producing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector of mining gender male employee type third time party critical risk others year 2016 month march 10 day 18 weekday friday 26th weekofyear 11 season summer is _ holiday no clean _ description approximately at am in circumstances that the messrs of the truck crane and william de la cruz culminated the shipment of blocks of thick metal plates with an approximate weight of kg which mr william de the cross rigger climbs onto and the truck to slowly remove the sling places both feet under the stretcher that supported the metal plates at that moment the central part of the stretcher is broken as a result not of which the two feet raised are imprisoned producing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 04 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month march day april weekday friday weekofyear business season summer is _ holiday no clean _ description approximately at am appropriate circumstances that the messrs of the truck crane and william de la cruz organised the shipment of blocks of metal plates with an approximate weight of kg mr william de las cruz rigger climbs into the truck to ensure the sling places both feet under the stretcher that supported the metal plates at that moment the central part of the stretcher is broken as a result of which the two feet while imprisoned producing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 03 01 local local _ 04 industry sector mining gender male employee type third party critical factors risk others year 2016 month 09 march day 18 weekday friday weekofyear 11 season 02 summer is _ holiday no clean _ description approximately at am in circumstances that required the messrs of the truck crane and william de la cruz culminated the shipment of blocks of metal plates with an approximate weight of kg whilst mr william de the cross rigger climbs onto using the truck crane to remove the sling places both feet under the stretcher that supported the metal plates at that particular moment the central part of the stretcher is broken as usual a result of which the two feet are imprisoned producing the injury'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Organization_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Period 2016 Month March February 18 February Friday WeekofYear 11 season Summer is_holiday No clean_description approximately at am in circumstances time the messrs of the truck crane and william de la cruz culminated the shipment of blocks of metal plates weighing an approximate weight of kg mr william or el cross rigger climbs through the truck to remove the sling places both feet under the stretcher that supported the metal plates at that moment the central part from the stretcher is broken as a result of which the two feet are imprisoned producing the injury'], 'Accident Level': 3}, {'Description': ['Country No Country_01 Local Local_04 Industry Sector Mining Gender Male Married Employee Type Third Party Critical Risk Others Year 2016 Month March Day 18 Weekday Friday WeekofYear 11 season August Summer is_holiday No clean_description approximately at am in that circumstances that the messrs of the large truck crane and william de la cruz culminated the shipment out of blocks of metal plates with an equivalent approximate weight value of kg mr william de the cross rigger after climbs onto the truck to remove the sling places both feet under the stretcher that presumably supported the metal plates at that moment the central part of the stretcher is broken as a result of which the two feet are imprisoned producing the injury'], 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2016 Month October Day 29 Weekday Saturday WeekofYear 43 season Spring is_holiday No clean_description in the activity of placing boards on racks for the exchange of fabrics of the filters one of the plates was inclined trying to put the plate in the correct position the plate arm pressed the back of the right hand against the structure of the easel', 'Accident Level': 3}, {'Description': ['Country Country Country Country Country City 08 Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2016 Month October Day 29 Weekday Saturday Weekday Weekend Year 43 Season Spring is Holidays Not a clean description in the activity to place boards on frames for the exchange of textiles of the filters One of the plates was inclined to put the plate in the correct position, the plate arm pressed the back of the right hand against the structure of the easel'], 'Accident Level': 3}, {'Description': {'Description': 'The workday of a metal worker. The work day of the metal worker is October 29, 2015. The day is a holiday.'}, 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 08 industry sector metals gender male employee type employee critical risk pressed year september month october day 29 weekday january weekofyear spring season spring is _ holiday no clean _ description in the activity of placing boards on racks for safe exchange of fabrics of oil filters one in the plates was inclined trying to put the mast in the correct position by plate arm and the back of the right plate against the structure of the easel'], 'Accident Level': 3}, {'Description': ['country country _ 02 local city local _ 08 industry sector metals gender male employee type employee critical company risk pressed year 2016 month october day 29 weekday saturday weekofyear 43 april season 31 spring is _ 2016 holiday no clean _ description in life the activity of placing boards on racks for the physical exchange of fabrics of the cloth filters one of the plates was inclined trying to slightly put the plate in the correct position the plate arm pressed the back of the right hand against the structure front of the easel'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 91 industry sector metals processing male employee type employee critical risk pressed year 2016 month october day 29 weekday saturday weekofyear 43 season spring is _ 18 thursday clean _ description in the activity chart placing boards on board for the exchange or fabrics of the filters one of the plates was placed trying to put every plate in the correct position the plate arm reached the back of the right hand against the structure of the easel'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ chapter 08 industry sector metals gender male employee preference type employee critical risk pressed year 2016 month october 28 day 29 weekday night saturday weekofyear 43 season spring is _ holiday no clean _ description in the activity of placing boards on protective racks for the exchange room of fabrics of the filters one of the plates was inclined trying to put the heat plate in the correct position the hot plate arm pressed into the back of the right hand against the fabric structure of the easel'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Career Critical Risk Pressed Year 2016 Month October Day 29 Weekday Saturday WeekofYear 43 season Spring is_holiday No clean_description in another activity room placing boards on frames for the exchange of fabrics of the filters one of the plates was inclined trying to put the plate on their vertical position the plate arm pressed the thumb of the right hand to the back of the easel'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Class Metals Gender Male Employee Type Employee Critical Risk Results Pressed Year August 2016 Month October Day 29 Weekday Saturday WeekofYear 43 season Spring is_holiday No clean_description in the activity of placing boards on racks ready for the exchange of water fabrics one of the filters one of the plates and was inclined trying to put the plate in for the correct position the plate left arm pressed the back of it the right hand against the structure of the easel'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 10 Weekday Sunday WeekofYear 27 season Winter is_holiday No clean_description the operator of the paste filling plant removes a floor grating x cm to clean the lower floor it is removed to close the water valve and does not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load the mechanics kept walking without noticing the floor and one of them falls into the void impacting his foot left at an angle that was about cm below the floor grating producing the injury', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 10 Weekday Sunday WeekofYear 27 season Winter is _ holiday No clean _ description the operator of the paste filling plant remove a floor grate x cm to clean the lower floor it is removed to close the water valve and not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load the mechanics kept walking without noticing the floor and one of them fall into the hollow impact his foot left at an angle that was about cm below the floor grate making the injuries'], 'Accident Level': 3}, {'Description': {'Description': 'The operator of the paste filling plant removes a floor grating x cm to clean the lower floor. The two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load. One of the mechanics kept walking without noticing the floor and one of them'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee not third degree low risk others year 2016 month july day 10 weekday 28 weekofyear 27 season 6 is _ holiday no clean _ description the technician of the paste filling plant removes a floor grating x cm to clean the lower floor it is removed to close the water valve and does not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load the mechanics kept walking without noticing a floor and one of them falls into the void impacting his foot left with an angle that was about cm below the floor grating his leg injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month july 24 day 10 weekday sunday weekofyear 27 season winter is _ holiday no clean _ description the operator of the paste filling plant and removes a floor grating x cm to clean the lower boiler floor it is removed to close the water valve and does not completely block the vacuum the two technicians who were finally entering the filter belt notice of an overflow and ask the operator to temporarily reduce the load the mechanics kept walking hard without noticing the floor and another one of them falls into the void impacting his foot left at an angle now that was about cm below the floor grating producing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 tourism sector mining gender male employees type third party retirement risk others year 2016 month july day 10 weekday sunday weekofyear 27 season winter is _ holiday 02 clean _ description the owner of the paste filling plant applies filter floor grating x cm to clean the lower floor it is removed to close the water valve and does not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load the mechanics kept walking without noticing the floor and one of them falls into the void impacting her foot left making an angle that was about cm below the floor grating producing the impression'], 'Accident Level': 3}, {'Description': ['country 04 country _ 01 local 02 local _ 04 industry sector mining gender male employee type third strike party critical risk others year 2016 month july day 10 weekday sunday weekofyear 27 season winter is _ holiday no clean _ description the operator of the paste wall filling plant removes a floor grating x cm to clean the lower floor it is removed to repeatedly close the water valve and does not block the vacuum the two technicians worker who were entering the filter belt notice an overflow and ask the operator supervisor to reduce the load the mechanics kept walking backwards without noticing the floor and one of them accidentally falls into the void impacting his foot left at maximum an angle that was about cm below the floor grating producing the injury'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Technical Employee Type Third Party Critical Risk Others Year 2016 Month July Day 10 Weekday Sunday WeekofYear 27 season Winter is_holiday No clean_description the operator of our tank filling plant removes a floor grating x cm to clean the lower floor it is removed to close drain water valve and does again block the vacuum the two technicians I were entering the filter belt experience an overflow and ask the operator to reduce the sink the mechanics went walking without noticing the floor and one of them falls into the void impacting his foot left at an angle that was about cm below the floor grating producing the debris'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Workers Others Year 2016 Month July 2018 Day 10 Weekday Sunday WeekofYear 27 season 2013 Winter is_holiday No clean_description the operator of the paste filling plant removes a floor grating x 3 cm away to clean the lower floor it is removed to close the water valve and does not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the tank load the mechanics kept walking without noticing the leaking floor and both one of them falls into the upper void impacting his foot left at an angle that was about cm below the floor grating producing the following injury'], 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk \nNot applicable Year 2016 Month June Day 17 Weekday Friday WeekofYear 24 season Autumn is_holiday No clean_description at approximately pm the operator paulo operator of the filters informed the autoclave operator via radio of a leak on the side of the scruber the autoclave iii feed was stopped by the control and officials georli and renato initiated the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in the chicken projecting pulp hot and reaching three employees who were inside the room near the equipment', 'Accident Level': 3}, {'Description': ['Country Country _ 02 Local _ 08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Not Applicable Year 2016 Month June Day 17 Weekday Friday WeekofYear 24 season Autumn is _ holiday No clean _ description at appropm the operator paulo operator of the filters informed the autoclave operator of a leak on the side of the scruber the autoclave iii feed was stopped by the control and official georli and renato initiated the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in the chicken projecting pulp hot and reach three employees who were inside the room near the equipment'], 'Accident Level': 3}, {'Description': {'Description': 'A leak on the side of the scruber of the autoclave led to a leak in the chicken processing room. Three employees were inside the room near the equipment at the time of the leak.'}, 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 08 industry sector metals gender male employee type employee critical risk not built year 2016 month june day 17 weekday friday weekofyear 24 season autumn is _ holiday no clean _ description at approximately pm the paulo paulo operator of the filters informed the autoclave operator via radio of a leak on the side of dry scruber the autoclave iii feed was stopped by the control and officials georli luca renato initiated the procedures for closing of autoclave transfer window for flash and soon after there was a break in the installation projecting pulp hot and reaching three employees who were inside control room near printing equipment'], 'Accident Level': 3}, {'Description': ['country country _ 2015 02 local to local _ 08 industry sector metals technician gender unknown male employee type employee critical risk not applicable year 2016 month june day 17 weekday friday weekofyear 24 season autumn is _ holiday no clean _ air description at approximately pm the operator paulo operator of the filters informed the autoclave operator via police radio of causing a leak on the side rail of the scruber the autoclave iii feed was stopped completely by the control and officials georli and renato initiated the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in the chicken projecting white pulp hot and reaching three employees who were inside the room near the equipment'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 08 industry emergency metals gender male employee type employee critical risk not uncommon year 2016 month june day 17 weekday friday weekofyear 24 season 2015 is _ holiday no clean _ description at approximately pm the operator paulo operator monitored the filters informed the autoclave operator via radio of a leak throughout the side of the scruber oil autoclave iii feed was loaded once the control and officials georli and renato initiated the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in fried chicken projecting pulp hot and reaching three employees they were inside the room near the equipment'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 08 industry sector metals gender neutral male employee employee type employee critical risk not applicable year 2016 month june day 17 weekday friday weekofyear week 24 season autumn is _ holiday no clean _ description at approximately pm est the alarm operator paulo operator of the filters informed the autoclave operator via radio announcements of a leak on the side rails of the scruber the autoclave iii feed was stopped by the control and officials georli and renato initiated the procedures for closing the autoclave transfer valve for explosive flash tqs soon after there was a break in which the chicken projecting fuel pulp hot and reaching three employees who were inside the room near the equipment'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk \nNot applicable Year 2016 Month June Day 17 Weekday Friday WeekofYear 24 season Autumn is_holiday No more_description at approximately pm the operator paulo operator of the filters informed with commercial operator via radio of a leak on the side of the scruber from autoclave iii feed was stopped by the control and officials georli and renato informed the procedures for closing the hot transfer valve for flash tqs soon after there was a break in the chicken projecting the hot flow reaching three employees who were inside the supply of the equipment'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local 7 Local_08 Industry Sector Metals Gender Male Females Employee Type Employee Critical Risk \nNot applicable Year 2016 Month June Day 17 Weekday Friday WeekofYear 24 season Autumn is_holiday No clean_description at approximately pm currently the operator for paulo operator of the filters have informed the autoclave operator via radio of a leak on the side of the scruber the autoclave transfer iii oxygen feed was stopped by the control and officials georli and managers renato initiated also the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in the chicken projecting pulp hot and reaching three employees who were inside to the room near the equipment'], 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month August Day 11 Weekday Thursday WeekofYear 32 season Winter is_holiday No clean_description during the withdrawal of the fixed jaw wedge from the crusher br the hoisting device hook was broken causing the steel cable of the overhead crane to strike the left hand of the employee', 'Accident Level': 3}, {'Description': ['Country Country _ 02 Local _ 02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Other Year 2016 Month August Day 11 Weekday Thursday WeekofYear 32 season Winter is _ holiday No clean _ description during the return of the fixed jaw wedge from the crusher br the heisting device hook was broken the steel cable of the obhead cran to hit the left hand of the employee'], 'Accident Level': 3}, {'Description': {'Description': 'During the withdrawal of the fixed jaw wedge from the crusher br the hoisting device hook was broken causing the steel cable of the overhead crane to strike'}, 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 02 industry sector mining gender male employee type third party ( remote ) critical risk others year 2016 month august year 11 weekday thursday weekofyear 32 season winter is _ holiday no clean _ description during training separation of the steel jaw wedge from the loading platform the hoisting device hook was broken causing another steel strap of the overhead crane to strike the upper hand of the driver'], 'Accident Level': 3}, {'Description': ['country 1 country _ 02 local local _ 02 industry public sector mining gender male employee type third party ( location remote ) critical risk 2 others year 2016 month august day 11 weekday thursday weekofyear 32 april season winter 1 is _ holiday no clean _ description information during the withdrawal of the fixed jaw wedge from the crusher br the hoisting device hook was broken causing the steel cable fall of from the second overhead crane to strike the left hand of the employee'], 'Accident Level': 3}, {'Description': ['country country _ 02 employment local _ 02 industry sector mining gender selective employee type third party ( remote ) critical risk others business 2016 month august day 11 weekday thursday weekofyear 32 january winter is _ holiday no clean _ tuesday during the withdrawal regarding the fixed jaw wedge from the crusher br the hoisting device hook was broken causing the steel pole of the engagement microphone to reach the left hand of the employee'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 02 industry sector mining organization gender male employee type third party ( remote ) critical risk others year 2016 month august day 11 weekday 1 thursday weekofyear 32 season winter is _ holiday 2011 no child clean _ description during the withdrawal of the fixed jaw wedge from the mine crusher crane br the hoisting lifting device hook operation was broken in causing the thin steel cable of the overhead crane to strike the left hand of the employee'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Title Employee Type Third Party (Remote) Remote Service Others Year 2016 Month August Day 11 to Thursday June 32 season Winter is_holiday No clean_description during the withdrawal of the fixed jaw wedge from the crusher cable the hoisting lifting hook was broken causing the steel cable of the overhead crane to strike under sweaty hand palm the employee'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Source Third Party Remote (Remote) Critical Risk Others Year 2016 Month Month August Day 11 Weekday Thursday WeekofYear 32 Working season Winter is_holiday No clean_description during the withdrawal process of the fixed jaw wedge device from the crusher br the hoisting device hook was broken causing the steel cable of powering the overhead crane to strike at the front left hand knee of the employee'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month October Day 18 Weekday Tuesday WeekofYear 42 season Spring is_holiday No clean_description in circumstances that the assistant of mine was arranging to advance the hose of flexible nylon of of diameter to proceed with the watered of shot fired positioning itself under a zone with the support deteriorated by the last blasting moment in which it gives off a block of rock cmxcmxcm kg of the roof of the work of a height of meters which when falling hits by rebound in the left leg of the collaborator causing the described injury', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month October Day 18 Weekday Tuesday Weekday Tuesday Weekday Year 42 Season Spring is Holidays None Clean _ Description under the circumstances that caused the wizard of mine to push forward the flexible nylon hose with diameter to continue irrigating the bullet fire and position himself under a zone where the support was worsened by the last explosive moment in which it releases a boulder cmxcmxcm kg from the roof of the plant at a height of meters, which is hit by rebound in the left leg of the collaborator causing the injury described above'], 'Accident Level': 3}, {'Description': {'Description': 'The assistant of mine was arranging to advance the hose of flexible nylon of of diameter to proceed with the watered of shot fired positioning itself under a zone. The support deteriorated by the last blasting moment in which it gives off a block of rock cmxcm'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 second sector mining with male employee type third party critical risk others year 2016 month october january 18 weekday tuesday weekofyear 42 season spring is _ holiday no clean _ description in circumstances that the assistant of mine is arranging the advance the hose of flexible nylon of of diameter to proceed with first discharge of shot fired positioning itself under a step with the support deteriorated by the last blasting moment in which it gives off a block of rock cmxcmxcm kg of the roof of the work at that height of meters which when falling hits by rebound in the left leg of the collaborator causing the described injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical job risk others year 2016 month october day 18 weekday 6 tuesday weekofyear 42 season spring is _ holiday no clean _ description in 2006 circumstances determined that the assistant of mine was arranging to advance the hose of flexible black nylon of of diameter to proceed with the watered of shot fired positioning it itself under a zone filled with the support deteriorated below by the last blasting moment in which it gives impact off a block of rock cmxcmxcm kg of the roof of the work of a height of meters which when falling hits by rebound it in the left leg of the collaborator causing the described injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party disaster risk others year 2016 month october day 18 weekday tuesday weekofyear 42 thursday spring is _ holiday no clean _ description in circumstances that the assistant of mine was arranging to advance the hose of flexible nylon of of diameter and proceed with the watered of shot fired positioning objects under a zone with the support deteriorated than the last blasting moment in which it gives off a line of diameter cmxcmxcm kg against the roof of the work of a height of meters which when falling hits by rebound in the left knee affects the collaborator causing the described injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical risk others year 2016 month october day 18 weekday tuesday weekofyear 42 season spring is _ holiday no clean _ description in circumstances that whenever the chief assistant of mine was arranging to advance the hose of flexible nylon of of diameter to proceed with the watered of shot fired positioning itself dangerously under a zone with the support deteriorated by during the last sustained blasting moment in which it repeatedly gives off approximately a block of rock cmxcmxcm kg of the roof of position the work block of a height of meters which when falling hits by rebound in reverse the left leg of the collaborator causing the described injury'], 'Accident Level': 3}, {'Description': ['Country Local_01 Mining Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others July 2016 18 October Day 18 Weekday Tuesday WeekofYear Mining season Spring is_holiday No clean_description the circumstances that the assistant of mine was arranging to advance the hose of flexible nylon of of diameter to proceed with the watered of shot but positioning itself under contact zone with the support deteriorated by the last blasting moment in which it gives off a block of rock cmxcmxcm kg of the roof of the work of a measure of meters which when falling hits by rebound in the left leg of the collaborator causing the following injury'], 'Accident Level': 3}, {'Description': ['Country 0 Country_01 Local Local_03 Industry Sector Mining Gender Male Gender Employee Type Third Party Critical Risk Others Year 2016 Month October 4 Day 18 Weekday Tuesday WeekofYear 42 season Spring is_holiday No clean_description in circumstances that the head assistant of mine management was arranging up to advance the hose of flexible concrete nylon of of diameter to proceed with the watered of shot fired positioning itself under a zone with the support deteriorated by the last blasting moment in which it gives off a block amount of rock containing cmxcmxcm kg of the roof part of the work of a height of meters which when falling hits by rebound in the left leg of the collaborator causing the described injury'], 'Accident Level': 3}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Poll Year 2016 Month March Day 24 Weekday Thursday WeekofYear 12 season Summer is_holiday No clean_description when performing the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the maneuver as the locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of the locking done only in one side of the chestnut and without aid of the monkey caused the sliding of the rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against the probe tower as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed for days from his activities', 'Accident Level': 3}, {'Description': ['Country Country _ 03 Local _ 10 Industry Sector Other Gender Male Employee Type Third Party Critical Risk Poll Year 2016 Month March Day 24 Weekday Thursday WeekofYear 12 season Summer is _ holiday No clean _ description when the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the lock nut of the rod, which together with the jack has the whole weight of the arms in the maneuver as the locking procedure as not effective the weight of the rod were only used by the steel wire rope of the probe winch at the moment that driller pedro lose the brake of the winch the inefficiency of the lock done only in one side of the chestnut and without the monkey cause the sliding of the rod helxiliary was prepared for manual unlocking of the rod holding the key against the probe tower as the composition shifting as the stems slid his hands which led to his left hand being forced to strike against the hospital to unlock the structure of the probe.'], 'Accident Level': 3}, {'Description': {'Description': 'When performing the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rod in the maneuver as the locking procedure was not effective. As the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee.'}, 'Accident Level': 3}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type third party critical risk poll year 2016 month march day 24 weekday thursday weekofyear 12 season 13 is _ holiday no clean _ description when performing the slot removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods closed together with the jack holds the entire weight of the rods in the maneuver as the locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake on the winch the inefficacy of the locking done only in one side of the chestnut and without aid of the monkey caused the sliding of the rods auxiliary tools prepared for manual unlocking of the rods holding the copper key firmly against the probe tower as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee was sent to the hospital where he worked through medical observation and was sutured with stitches same was removed for days from his activities'], 'Accident Level': 3}, {'Description': ['country country _ 03 local local _ 10 industry registered sector others gender male women employee type national third party industry critical risk poll year 2016 month march day 24 weekday thursday weekofyear 12 season summer week is _ holiday no clean _ description when performing the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the first maneuver as the original locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of the locking done only in one side of the chestnut and without aid of the small monkey caused the sliding of the rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against the probe tower structures as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed continuously for days from his activities'], 'Accident Level': 3}, {'Description': ['country country _ 03 local local _ 10 industry sector others gender male employee type third party critical risk poll year 2016 month 7 day 24 weekday thursday weekofyear 12 season summer is _ holiday no clean _ description technician performing the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the maneuver as the locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of metal locking done only in one side of the pad and without aid of the monkey caused the base of the rods auxiliary was prepared for manual working of the rods holding the faucet key firmly against the sensor tower as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike through the base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital while he went through medical care wound was sutured with stitches same was removed for days despite his activities'], 'Accident Level': 3}, {'Description': ['country country _ 03 local local _ 10 industry media sector others gender male employee type third party critical role risk poll year 2016 month march day 24 2016 weekday thursday weekofyear 12 season summer is _ holiday no clean _ description when performing the sleeve removal maneuver maneuver when the hole was meters deep general da silva pressed only one side side of the locking nut of the sealing rods which together with the jack holds the entire weight carrier of the rods in the maneuver as the locking procedure was not effective the weight of the rods was only secured upon by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of the locking done only in one side of the chestnut and without aid of the monkey caused the sliding of the rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against entering the probe tower as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing painful cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed for days from his activities'], 'Accident Level': 3}, {'Description': ['Country Country_03 Local Province_10 Industry Sector Others Gender Male Male Type Third Party Critical Risk Poll 2017 2016 Month March Day 24 Weekday Thursday WeekofYear 12 season Summer is_holiday No clean_description when performing welding sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the joint as the locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of the locking done well in one side of the chestnut and without aid of the monkey caused the sliding motion the rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against the probe tower as the composition shifted as all stems in his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed for recovering from his activities'], 'Accident Level': 3}, {'Description': ['Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Poll Year 2016 Month March Day 24 week Weekday Thursday WeekofYear 12 season Summer is_holiday No clean_description when performing the sleeve removal maneuver when the hole cut was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the maneuver as the locking procedure was not cost effective the weight of the rods together was only secured by the steel wire rope of the probe winch even at the moment that driller pedro released the brake of the winch the inefficacy of performing the locking done only in one side of the chestnut and without aid of the monkey feet caused the sliding of the four rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against the probe tower as the composition shifted as the stems slid his hands were not shifted downward causing his left hand to strike against the external base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed for days from his activities'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Fall prevention (same level) Year 2016 Month June Day 8 Weekday Wednesday WeekofYear 23 season Autumn is_holiday No clean_description at approximately pm on the operator eustaquio falls down from the metal platform that gives access to tank d of the strong acid leaching stage and suffers luxofractures in the wrist left when leaning on the floor with his hand the operator was directed to the first tank of the strong acid leaching stage tk d to verify the entry of spent to the taque', 'Accident Level': 3}, {'Description': ['Country Country Country Country Location Industry Industry Metals Gender Male Employee Type Employee Critical Risk Fall Prevention (same level) Year 2016 Month June Day 8 Weekday Wednesday WeekofYear 23 Season Autumn is Vacation No Clean Description At about 17: 00 the operator falls eustaquio from the metal platform that allows access to the tank d of the strong acid leaching phase and suffers luxury fractures in the left wrist when leaning his hand on the floor. The operator was directed to the first tank of the strong acid leaching phase to check the input of the time spent.'], 'Accident Level': 3}, {'Description': {'Description': 'The operator falls down from the metal platform that gives access to tank d of the strong acid leaching stage and suffers luxofractures in the wrist left when leaning on the floor with his hand. The operator was directed to the'}, 'Accident Level': 3}, {'Description': ['country or _ small business local _ 06 industry sector metals gender male employee type female critical risk fall prevention ( same level ) year 2016 month 5 day 8 saturday wednesday weekofyear 23 season autumn is _ holiday no clean _ description at approximately pm on the operator eustaquio falls down from the metal platform that gives access to tank d of the strong acid leaching stage and suffers luxofractures in the entire left when leaning on its floor with his hand the operator was directed to the first tank of the strong acid cooling stage tk d to verify the entry of spent to this taque'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry sector heavy metals gender male employee job type employee critical risk fall prevention ( same level ) year 2016 month june day 8 weekday wednesday weekofyear 23 season autumn activity is _ holiday no clean _ description at approximately pm on the 19th operator eustaquio falls down from the metal platform that is gives access to tank d of the strong acid leaching stage and suffers luxofractures in the wrist left when leaning on the floor with his hand the operator was directed directly to the first tank of the strong acid leaching stage tk 2 d e to verify on the entry of spent waste to the taque'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 5 industry sector metals gender male employee type employee critical risk fall prevention ( same level ) year 2016 month june day 8 weekday wednesday sunday 23 season autumn is _ holiday no clean _ description day approximately pm on watch operator eustaquio falls down beside the metal platform that gives access in tank d of the strong acid leaching stage and suffers luxofractures in both wrist left eye leaning on the floor with his hand the operator was directed to external storage tank of the strong acid leaching stage tk d to verify the entry of spent to the taque'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male members employee type employee critical risk of fall prevention ( same level ) year 2016 month june day · 8 weekday wednesday weekofyear 23 season autumn is _ holiday no clean _ description at approximately pm on the operator eustaquio falls down from the metal platform that gives access to tank d of the strong acid acid leaching stage and suffers luxofractures in the wrist left when leaning on the floor with palm his hand and the operator was directed downwards to the upstream first tank of the strong acid leaching stage stage tk d to verify the imminent entry of spent to the taque'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_06 Industry Type Metals Gender Male Species Type No Critical Risk Fall 2013 (same level) Year 2016 Month June Day 8 Weekday Wednesday WeekofYear 23 season Autumn is_holiday No clean_description at approximately pm on the operator eustaquio falls back from the metal frame that gives access to tank d of the strong acid leaching stage and suffers luxofractures in the wrist left when leaning on the column with his hand the apparatus was directed to the first tank of the strong acid leaching stage tk d to verify that entry of spent to its taque'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Gender Employee Type Employee Critical Risk Fall prevention (same level) Year 2016 Last Month June Day December 8 Weekday Wednesday WeekofYear 23 season Autumn 2018 is_holiday No clean_description at approximately pm on the second operator eustaquio falls down from touching the metal platform that gives access to tank d of the strong acid leaching stage and suffers luxofractures in near the wrist left when leaning on the floor with only his hand the second operator was directed to the first tank of the strong acid leaching stage stage tk d to verify the entry of spent to the taque'], 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description the employees mrcio and srgio performed the pump pipe clearing activity fz and during the removal of the suction spool flange bolts there was projection of pulp over them causing injuries', 'Accident Level': 3}, {'Description': ['Country Country _ 02 Local _ 07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is _ holiday No clean _ description the workers mrcio and srgio did the pump pipe clearing activity fz and during the removal of the suction coil flanges stud there was projection of pulp over them causing injuries'], 'Accident Level': 3}, {'Description': {'Description': 'The employees mrcio and srgio performed the pump pipe clearing activity fz. During the removal of the suction spool fl'}, 'Accident Level': 3}, {'Description': ['sunday party _ 02 local local _ time industry community mining gender male employee type employee work risk projection year 2017 month may day 6 weekday saturday weekofyear 18 season autumn is _ holiday on clean _ description the employees mrcio member srgio performed the pump pipe clearing activity fz and during the removal of the suction spool pipe bolts there was projection of smoke over them cause injuries'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 07 rural industry sector mining gender male employee job type employee critical fire risk projection year 2017 month may day 6 weekday 5th saturday weekofyear 18 season autumn is _ holiday no clean _ description the employees mrcio ltd and srgio performed during the pump pipe clearing activity with fz and during the water removal of the suction spool side flange bolts there was projection of pulp over them causing extensive injuries'], 'Accident Level': 3}, {'Description': ['2017 p _ 02 local local _ 07 industry sector mining gender male employee type employee critical risk management calendar 2017 month may day 6 weekday saturday weekofyear 18 season autumn is _ holiday 2 clean _ description the employees mrcio and srgio performed hydraulic pump pipe clearing activity fz and during the removal process the suction spool flange bolts there increased projection of pulp over fire causing shock'], 'Accident Level': 3}, {'Description': ['mining country 2002 country _ 02 local local _ 07 industry sector mining occupational gender male employee association type employee critical risk projection fiscal year 2017 month may day 6 weekday saturday weekofyear 18 season autumn is _ holiday 2009 no clean _ description the employees mrcio and srgio performed the pump pipe clearing activity fz routine and during the post removal portion of the suction spool flange bolts there was projection of pulp bags over them causing injuries'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_07 Industry Group Mining Rating Male Asset Type No Critical Risk Type Year 2017 Month May Day 6 Weekday Saturday November 18 season Autumn is_holiday No clean_description the employees mrcio and srgio performed the pump pipe clearing activity fz and during the removal on small suction spool flange bolts there was projection to pulp over them potential injuries'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_07 Location Industry Mining Sector Mining Private Gender Male Employee Type Employee Critical Risk Projection Year Autumn 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description between the two employees at mrcio and srgio performed the pump pipe clearing activity fz and during cleaning the removal of the suction spool flange bolts there was projection of bean pulp over them apparently causing injuries'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Electrical installation Year 2016 Month February Day 2 Weekday Tuesday WeekofYear 5 season Summer is_holiday No clean_description in moments that the operator of the jumbo tried energize your equipment to proceed to the installation of split set at intersection of nv remove the lock and opening the electric board of v and a and when lifting the thermomagnetic key this makes phase to ground phase contact with the panel shell producing a flash which reaches the operator causing the injury described', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Electrical Installation Year 2016 Month February Day 2 Weekday Tuesday WeekofYear 5 Season Summer is Holidays None Clean _ Description in moments that the operator of the jumbo tries to power your equipment to go to the installation of split set at the intersection of nv remove the lock and opening the electrics of v and a and when lifting the thermo-magnetic key makes this phase to ground contact with the plate sleeve a lightning bolt that reaches the operator who causes the described injury'], 'Accident Level': 3}, {'Description': {'Description': 'In moments that the operator of the jumbo tried energize your equipment to proceed to the installation of split set at intersection of nv remove the lock and opening the electric board of v and a. When lifting the thermom'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 2 industry sector mining gender male employee type third party critical risk electrical services month 2016 month 31 day 2 weekday tuesday weekofyear 5 season 2 is _ holiday no clean _ description in moments that the operator of golden jumbo tried energize your equipment to proceed to phase installation of split set at arrival of nv remove the lock and opening the electric board containing v and a and when lifting the thermomagnetic key that makes phase to ground phase contact with the panel shell producing a flash which reaches the operator causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry mining sector mining gender and male employee type third party critical risk electrical installation year of 2016 month february day 2 weekday tuesday weekofyear 5 season summer is _ my holiday no clean _ description in moments that the operator of the jumbo tried energize your equipment to proceed to the installation of split set at intersection of nv remove closing the lock and opening the electric board loop of v and a dc and when lifting the reverse thermomagnetic key this makes phase to ground phase contact with the panel housing shell producing a flash which reaches for the operator causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk electrical installation date 2016 month february day 2 weekday tuesday weekofyear 5 season summer is _ holiday no clean _ description in fact that the operator of the jumbo tried energize your equipment to proceed to the installation of split panels at intersection of automatic remove the lock and opening battery electric board of v and a and when lifting an usb key plug makes phase to ground phase contact with fuel panel shell producing a flash which triggered the operator causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 07 01 industry sector variable mining gender male employee type third party critical risk electrical installation year 2016 month february day 2 weekday tuesday weekofyear 5 season summer is _ holiday no clean _ wash description in moments that the operator of the jumbo tried only energize your equipment to proceed to the installation of load split set at intersection of nv remove the lock and opening the electric board of v and x a and when lifting the motor thermomagnetic spring key this makes phase to ground phase contact with the panel plate shell immediately producing a flash which reaches the operator causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Sector Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Electrical installation Year 2016 Month February Day Sunday Weekday Tuesday WeekofYear Off season there is_holiday a clean_description in moments that the presence of fire jumbo tried energize your equipment to proceed to the installation of split set at intersection of nv remove the lock and opening the electric assemblies of l and a and when lifting the thermomagnetic key this makes phase to ground phase contact with the panel shell producing light flash which reaches the operator causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Printing Party Critical Risk Electrical installation Year 2016 Month February Day 2 Weekday Tuesday WeekofYear 5 season Summer is_holiday No clean_description in moments that the operator off of the jumbo tried energize all your equipment to proceed to connect the installation switch of split set at intersection of nv remove the lock and by opening the electric board of v and a and when lifting out the thermomagnetic key that this makes phase to ground phase contact with with the circuit panel shell producing a flash which reaches the operator causing the injury described'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 22 Weekday Tuesday WeekofYear 12 season Summer is_holiday No clean_description during the refurbishment work of the hdpe pipes of diameter with two workers when the worker who secured the pipe with a chain standing on the basket of the ampoloader raised to a height of m from the ground the pipe slipped and impacted his arm right causing an injury to the radius of the right arm', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month March Day 22 Weekday Tuesday WeekofYear 12 Season Summer is Vacation No clean description during remediation work on the diameter pipes of the HdTube with two workers when the worker securing the pipe with a chain on the basket of the ampoloader was lifted to a height of m from the ground, slipped and hit his right arm, injuring himself in the radius of the right arm'], 'Accident Level': 3}, {'Description': {'Description': 'The incident occurred during the refurbishment work of the hdpe pipes of diameter with two workers. The worker who secured the pipe with a chain standing on the basket of the ampoloader raised to'}, 'Accident Level': 3}, {'Description': ['in country _ 01 local authority _ the industry sector mining gender male employee type third party critical risk others year 2016 month march day 22 weekday tuesday september 12 season 15 is _ holiday no clean _ description during the refurbishment design of in hdpe pipes of diameter with two workers when the worker who secured the pipe with a chain standing inside the basket of the ampoloader raised to a height of m from the ground the pipe slipped when impacted his arm right causing an injury to the radius of him right arm'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry services sector mining gender male employee female type third party critical risk others year 2016 month march day 22 weekday tuesday weekofyear 12 season summer is _ the holiday no month clean _ description during the refurbishment work of the hdpe used pipes of diameter with two workers when kneeling the worker saw who secured the pipe with a chain standing on the basket portion of the ampoloader being raised to a height of m from the ground the pipe slipped loose and impacted his arm right causing an injury to the radius of the right arm'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 natural resource mining gender identified employee type third party critical risk others year 2016 month march day 22 weekday tuesday weekofyear 12 season summer is _ holiday no clean _ description detailing the refurbishment work of the hdpe pipes of diameter with two handles — 1 worker who secured the pipe with a chain standing on the basket of the ampoloader flew to a height of m from the ground the pipe slipped into impacted his arm right revealing an injury to the radius of the right arm'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party economic critical risk others year 2016 month march day 22 weekday tuesday weekofyear 12 season summer is _ holiday no clean _ description during the refurbishment work of the hdpe pipes 40th of diameter with hand two workers when the worker who secured the pipe with hand a chain standing on the basket of the ampoloader raised to negotiate a height of m away from the ground the pipe slipped and promptly impacted his index arm right causing an injury to decrease the radius of reaching the right arm'], 'Accident Level': 3}, {'Description': ['Country EU_01 Local Local_01 Industry Steel Mining Gender Male Employee Type Third Party Critical Other Others Year 2016 Month March 2015 22 Weekday Tuesday WeekofYear 12 season Summer is_holiday No clean_description during the refurbishment work of a hdpe pipes of diameter with two workers when the man who secured the pipe with a chain standing on the basket of the ampoloader raised quite a height below approximately from the ground the pipe slipped and impacted his upper right causing an injury to the radius of the right arm'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Environment Mining Gender Male Sex Employee Type Third Party Critical Risk Others Year 2016 Month March 15 Day 22 Weekday Tuesday WeekofYear 12 Full season Summer is_holiday No clean_description during the refurbishment work of the twelve hdpe pipes of diameter with two workers when the worker who secured the first pipe with a chain standing on top the basket of the ampoloader raised to a height < of m from the ground where the pipe slipped and impacted his arm right causing cause an injury to the radius of the right arm'], 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk remains of choco Year 2017 Month April Day 25 Weekday Tuesday WeekofYear 17 season Autumn is_holiday No clean_description activity front sanitation slaughter of choco with scaller local underground mine level front upper jka the operator performed front sanitation when a rock block from the roof hit the equipment the accident victim was promptly rescued by the units emergency brigade and transported to the outpatient clinic where he received the first care and was then transferred to the municipal of paracatu', 'Accident Level': 3}, {'Description': ['Country Country _ 02 Local _ 07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Remains of Choco Year 2017 Month April Day 25 weekday Tuesday WeekofYear 17 season Autumn is _ holiday No clean _ description activity front sanitation killing of choco with scaller local underground mine level front upper jka the operator done front sanitation when a rock block from the roof hit the equipment the victims were prompted by the units emergency brigade and transported to the outpatient clinic where he received the first care and was then transferred to the municipality of paracatu'], 'Accident Level': 3}, {'Description': {'Description': 'The operator performed front sanitation when a rock block from the roof hit the equipment. The accident victim was promptly rescued by the units emergency brigade.'}, 'Accident Level': 3}, {'Description': ['country country _ 02 local country _ 07 industry sector 1 gender male employee female employee critical risk remains of choco year 2017 month april day 25 november tuesday weekofyear 17 season autumn is _ holiday no clean _ description activity front sanitation slaughter of the creek no local underground mine level front upper shaft the operator performed front sanitation when a rock block from the roof hit the equipment the accident victim was promptly rescued by the sp emergency brigade and transported to another outpatient clinic where he received the first care and was then transferred to the municipal of paracatu'], 'Accident Level': 3}, {'Description': ['country country _ u 02 local local _ 07 industry sector mining gender is male employee type employee without critical risk remains of choco year 2017 2017 month april day 25 weekday tuesday weekofyear 17 spring season autumn is _ holiday no clean _ in description activity front sanitation slaughter of choco with scaller local underground mine level front upper jka the operator performed operational front sanitation when a rock block from underneath the roof hit the equipment the accident victim was promptly rescued later by the units emergency brigade and transported to the outpatient clinic where he received the first care and was then temporarily transferred to the municipal of paracatu'], 'Accident Level': 3}, {'Description': ['country country _ 02 local 2008 _ 07 private sector mining gender male employee type employee critical risk remains of choco year 23 month april day 25 weekday tuesday weekofyear 17 season autumn 2014 _ holiday festival clean _ description activity front sanitation slaughter of choco with scaller local underground mine level front upper jka the operator performed front sanitation breach splinter rock block from the roof hit the equipment the accident victim was promptly infected by the units emergency brigade patients transported to the outpatient clinic where he received the first care and then then transferred to the municipal of paracatu'], 'Accident Level': 3}, {'Description': ['country country _ 02 local local _ 07 logging industry sector mining gender male employee type employee critical risk remains of choco year 2017 month april 30 day 25 pm weekday tuesday weekofyear october 17 season autumn is _ holiday no clean _ description summer activity front sanitation slaughter of choco with scaller local underground mine level front upper jka the rescue operator performed front exit sanitation when a rock block falling from the roof hit the equipment the accident victim was promptly rescued by the units emergency brigade squads and transported to the outpatient clinic where he received the first care treatment and was then transferred to the municipal of paracatu'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_07 Country Sector Mining Gender Status Employee Type Employee Critical Risk owner of choco Year 2017 Month April Day 25 Weekday Tuesday WeekofYear 17 season Autumn is_holiday No other_description activity front worker slaughter of choco with scaller local underground mine level front upper jka the operator performed front sanitation when a rock block in the roof crushed the equipment where accident victim was promptly rescued by the units fire brigade and transported to the outpatient clinic where he received the first treatment and was then transferred to the municipal of paracatu'], 'Accident Level': 3}, {'Description': ['Country Country_02 Local Local_07 Industry Sector Mining industry Gender Male Employee Type Employee Critical Risk remains of choco Year 2017 Month April – Day 25 Weekday Tuesday WeekofYear 17 season Autumn is_holiday No clean_description work activity Load front sanitation slaughter of choco with scaller local underground mine level front upper jka the operator performed loader front sanitation when a rock block from the roof hit the lift equipment the accident victim Thomas was promptly rescued up by the units emergency brigade and transported to the outpatient clinic area where he received the first care and was then transferred to the municipal unit of paracatu'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month January Day 10 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description approximately at am in circumstances that the mechanics anthony group leader eduardo and eric fernndezinjuredthe three of the company impromec performed the removal of the pulley of the motor of the pump in the zaf of marcy cm length cm weight kg as it was locked proceed to heating the pulley to loosen it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing the injury described', 'Accident Level': 3}, {'Description': ['Country Country Country Country Country City 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month January Day 10 Weekday Sunday Weekday Year 1 Season Summer is Holiday No clean description about in the morning under the circumstances that the mechanics Anthony group leaders eduardo and eric fernndezinjuredthe three of the company impromec the disassembly of the pulley of the motor of the pump was carried out in the sheep of marcy cm length cm weight kg as it was locked to release the pulley, it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker who caused the injury described'], 'Accident Level': 3}, {'Description': {'Description': 'The three of the company impromec performed the removal of the pulley of the motor of the pump in the zaf of marcy. It comes out and falls from a distance of meters high and hits the instep of the right foot of the worker'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry end mining gender male employee type third party critical risk others year 2016 month january day 10 weekday sunday weekofyear 1 season time is _ holiday no clean _ description approximately at am in circumstances that the mechanics anthony group replaced robert and eric fernndezinjuredthe three of the company impromec performed the removal of the pulley of the motor of the pump in the zaf of marcy cm length cm weight kg as it was lowered proceed to press the metal to loosen it it comes out and falls in a distance of waist high and hits almost instep of the right foot of the worker causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month january day 10 weekday sunday weekofyear 1 season summer summer is _ holiday no clean _ description approximately at am in circumstances with that the mechanics anthony group leader eduardo and eric fernndezinjuredthe three of the company impromec teams performed the surgical removal of the pulley of the motor of the hand pump in the zaf of marcy cm length cm weight kg that as it was locked locked proceed then to heating the pulley plant to loosen the it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing the injury described'], 'Accident Level': 3}, {'Description': ['country c _ 01 local local _ 04 industry union mining gender male employee type third party strike risk others year 2016 month january day 10 weekday sunday weekofyear 1 season monday is _ holiday no 16 _ saturday approximately at am necessary circumstances that the mechanics anthony group leader eduardo and felix fernndezinjuredthe three of the company impromec account the removal of the pulley of the motor of the pump in the zaf of marcy cm length cm weight kg inside it was locked proceed to heating the pulley to loosen it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining employee gender male employee type third party critical occupations risk others feb year 2016 month january day 10 weekday sunday weekofyear 1 season summer is _ holiday no relation clean _ description approximately at am in circumstances that the mechanics ’ anthony group leader eduardo and eric fernndezinjuredthe three of the company impromec ltd performed the removal of the pulley of the motor of the pump arms in the last zaf of marcy cm length cm weight kg as it suddenly was locked proceed to heating the pulley to loosen it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing by the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Labor Party Critical Risk Others Year 2016 Month ended July 10 Part 1 WeekofYear 1 season Summer is_holiday No clean_description approximately at am in circumstances that the mechanics anthony group leader eduardo and eric fernndezinjuredthe three of the company impromec performed the removal of the pulley of the part of the lift in his zaf of marcy cm length cm and kg as it starts locked proceed to heating the pulley to loosen it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Transportation Industry Sector Mining Gender Male Employee Type Production Third Party Critical Risk Others Year 2016 Month January Day 10 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description approximately at am in circumstances that the mechanics anthony work group leader eduardo and eric fernndezinjuredthe three of which the company impromec performed the removal of the pulley of the motor system of the pump in the zaf of marcy cm length cm weight kg as it was locked proceed Unable to heating the pulley to loosen within it it comes out and falls from a close distance of meters high ground and hits the instep of the right foot of the worker causing to the injury described'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 19 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description the operator of the scissor leaves his equipment parked at level acc due to electrical problems when the maintenance personnel arrives the electrician climbs on the control platform of the equipment and performs the verification of the hydraulic system confirming the problem then in coordination with the mechanic decide to perform the test with the diesel system moments in which accidentally activates with the body the arm movement lever causing the drill arm to move downwards generating the left hands atricion against the support of the pivot tube generating the lesion described at the time of the accident the electrician was alone on the control platform while the mechanic was at ground level observing the pressure on the diesel system pressure gauge', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 19 Weekday Sunday WeekofYear 24 Season Autumn is Vacation No Clean _ Description The operator of the scissors has his equipment parked upwards due to electrical problems when the maintenance staff arrives The electrician climbs onto the control platform of the equipment and performs the inspection of the hydraulic system by confirming the problem then, in coordination with the mechanic decide to perform the inspection with the diesel system Moments in which the body of the lever of the arm movement is inadvertently actuated, causing the drill arm to move downwards, whereby the left hand generates actuation against the support of the rotary tube that creates the lesion described at the time of the accident, the electrician was alone on the control platform, while the mechanic monitors the pressure on the diesel system manometer near the ground.'], 'Accident Level': 3}, {'Description': {'Description': 'The operator of the scissor accidentally activates with the body the arm movement lever causing the drill arm to move downwards. The left hands atricion against the support of the pivot tube generated the lesion described at the time of the accident.'}, 'Accident Level': 3}, {'Description': ['country country _ state local local _ 03 industry sector mining gender male employee type third officer critical month calendar year 2016 month june day 19 weekday sunday weekofyear 24 season autumn is _ holiday no clean _ description the operator of the scissor leaves his equipment parked at level 2 due to electrical problems when the maintenance personnel arrives the electrician climbs on the control platform of the barge and performs the verification of the hydraulic system confirming the design then in coordination with the mechanic decide then perform the test with the diesel system moments in which accidentally activates with the body the arm movement lever causing to drill arm to move downwards generating the left hands atricion pulling the support of the pivot tube generating the lesion described at the time of the accident the electrician was alone on the control platform while the mechanic was at ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee 1st type third party critical job risk others year 2016 month june day 19 weekday sunday weekofyear 24 season autumn is _ holiday no clean _ description the operator of the scissor leaves his equipment parked at level acc due to the electrical problems when the maintenance personnel arrives the electrician successfully climbs on the control platform of the equipment and performs the verification measures of the hydraulic system confirming the problem then in coordination with the mechanic decide to perform the test with checking the diesel system moments in which accidentally activates with the body the arm movement hydraulic lever causing the drill arm to move downwards generating not the left hands atricion against the support of the pivot tube generating the lesion described at the time of such the accident the electrician was alone on the control platform while the mechanic equipment was at ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical risk others year 2016 month june 2017 19 december sunday weekofyear hot season autumn is _ holiday no clean _ description the operator of the scissor leaves his equipment parked at level acc due to electrical problems when the maintenance personnel arrives the electrician climbs on internal control platform triggering the equipment and performs the verification of the hydraulic system confirming the problem then in coordination with the mechanic decide to perform the test with the internal system moments in which accidentally activates with the body the arm movement lever enables the drill arm to move downwards generating the left hands atricion against the support of the pivot tube generating the lesion described at the time of the accident the car was alone on the track platform observing the mechanic was at ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining accidents gender male employee type third party critical risk others year 2016 month june day 19 weekday sunday weekofyear 24 season autumn is _ holiday no entry clean _ description the operator of the scissor leaves his equipment parked at level acc due to electrical problems when the maintenance personnel unexpectedly arrives the electrician climbs on the control platform of the equipment and performs the verification of the hydraulic trigger system moments confirming the problem then in coordination with the mechanic decide to perform the test with the diesel trigger system moments in which accidentally activates with the body the arm movement trigger lever causing the drill arm to move downwards generating the left hands atricion against the support of the pivot tube generating through the lesion described at the time of the accident the electrician was alone and on the control platform while the mechanic was at lower ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Male Third Party Critical Risk Others Year 2016 Month June Day 19 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description the operator of the scissor leaves his equipment parked at level acc due to electrical vandalism when the maintenance personnel arrives the electrician climbs on the control platform of the rig and performs the verification of the transmission system confirming the functionality whilst in coordination with the mechanic determines to perform the test with the hydraulic system moments in which accidentally activates with the body the arm movement lever causing your drill arm to move downwards generating the left hands atricion against the support of the pivot tube generating the lesion described at the time of the accident the technician was alone on the control platform while the mechanic was at ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Agriculture Mining Gender Male Employee Type Third Party Critical Other Risk Others Year November 2016 Month June Day December 19 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description the operator operator of the scissor leaves his equipment parked at level acc due to electrical problems when the maintenance personnel arrives the electrician climbs low on top the control platform of the equipment and performs the verification of the hydraulic system confirming the problem then in total coordination with the mechanic decide to perform the test with the diesel system moments in which accidentally activates with the body the arm movement lever causing the drill arm to move sharply downwards generating the left hands atricion against the support of the pivot tube generating the lesion described at the time of the accident the electrician was alone on the control engine platform while the mechanic was at ground level observing the pressure on the diesel system pressure gauge'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Fall Year 2017 Month February Day 25 Weekday Saturday WeekofYear 8 season Summer is_holiday No clean_description during the mining cycle at the chimney before starting with the drilling work to anchor the lane of the alimak system the collaborator squat to pick up a manual tool that is on the platform it is at this moment that the jackleg team loses its position and projects towards the back of the collaborator generating the injury', 'Accident Level': 3}, {'Description': ['Land Land _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Fall Year 2017 Month February Day 25 Weekday Saturday WeekofYear 8 season Summer is _ holiday No clean _ description during the mining cycle at the chamney before starting with the drilling work to anchor the lane of the alimak system the collaborator hock to pick a manual tool that is on the platform it is at this moment that the jackleg team lost its position and projects towards the back of the collaborator generating the injuries'], 'Accident Level': 3}, {'Description': {'Description': 'The jackleg team lost its position and projects towards the back of the collaborator generating the injury. During the mining cycle at the chimney before starting with the drilling work to anchor the lane of the alimak'}, 'Accident Level': 3}, {'Description': ['country 2016 _ 01 local local _ 01 industry sector mining unit male employee type to party ( remote ) critical risk fall year 2017 month 3 day 25 weekday saturday weekofyear 8 season summer is _ holiday no clean _ description during the mining cycle at the chimney before starting with the drilling work to anchor the platforms of the alimak system the collaborator squat to set up a cutting tool that is on the platform and is at this moment that the jackleg project loses its position and projects towards the back of the collaborator generating the data'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee professional type third party ( remote ) critical risk fall year 2017 month february day 25 weekday til saturday weekofyear 8 season summer is _ holiday no clean _ description mine during the mining cycle at the chimney before mining starting with the drilling unit work to anchor the lane of the former alimak mining system the collaborator squat to pick up a manual tool that is on the platform it is at this moment that the second jackleg team frequently loses its position and projects towards the back of the collaborator whilst generating the injury'], 'Accident Level': 3}, {'Description': ['country 07 _ 01 2nd country _ 01 industry sector 3rd gender male employee engagement third party ( remote ) critical risk fall year 2017 month february day 25 weekday saturday weekofyear 8 season summer is _ holiday no clean _ description during the mining cycle at the chimney before starting firing the drilling work to anchor every lane of the alimak system the worker squat to pick up manually manual tool that is on the platform it is at this moment that the jackleg team loses its position and projects towards the back of one collaborator generating the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee entry type survey third party ( remote ) critical risk fall year spring 2017 month february day 25 weekday saturday weekofyear 8 season summer is _ holiday no clean _ description during the mining cycle at the deposit chimney before starting with the drilling work to anchor the first lane network of the alimak system the collaborator squat to pick next up a manual tool that is on the platform it is at this moment that the jackleg team loses its position and keeps projects together towards the back of getting the collaborator generating the injury'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Source Employee Type Third Party (Remote) Critical Risk Fall Year 2017 Month February Day After Weekday Saturday June 8 season Summer is_holiday No clean_description during the mining area at the chimney site starting with the drilling job to anchor the lane of the alimak system the collaborator squat to pick up a manual tool that hangs on the platform it is for this moment that the extraction team loses its focus and projects towards the back of the collaborator generating the injury'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_01 Regional Industry Special Sector Mining Gender Labour Male Employee Type Third Party (Remote) Critical Risk Fall Year Fall 2017 Month February Day 25 Weekday Saturday WeekofYear 8 season Summer is_holiday No clean_description during the mining cycle at the chimney before starting with the drilling work to anchor the lane of the new alimak tunnel system When the collaborator squat to pick up a manual tool that is on of the drilling platform it is at this moment that the jackleg team loses its position and projects towards the back of track the collaborator generating the injury'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party (Remote) Critical Risk Fall prevention Year 2017 Month January Day 20 Weekday Friday WeekofYear 3 season Summer is_holiday No clean_description at hours mr cesar tellomoinsac was carrying out the work of assembling the water line for that he climbs up the cat ladder and at an approximate height of meters he vanishes and falls hitting himself on the way being transferred to the medical center for his attention', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 06 Industry Sector Metals Gender Male Employee Type Third Party (Remote) Critical Risk Fall Prevention Year 2017 Month January Day 20 Weekday Friday Weekday Week Year 3 Season Summer is Vacation No clean description by hours Mr. Cesar Tellomoinsac was busy assembling the water main for which he climbs up the cat stairs and at an approximate height of meters he disappears and throws himself on the way to the medical center to draw his attention.'], 'Accident Level': 3}, {'Description': {'Description': 'Mr cesar tellomoinsac was carrying out the work of assembling the water line for that he climbs up the cat ladder and at an approximate height of meters he vanishes and falls'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry zinc metals gender male employee only third party ( remote ) health risk fall prevention year 2017 month january day 20 weekday friday weekofyear 3 season summer is _ holiday weekend clean _ description at hours mr cesar tellomoinsac was carrying out the work is assembling the water line for everyone he climbs up a cat ladder and at every approximate height of meters he vanishes and falls by himself on the way was transferred to the medical center for his attention'], 'Accident Level': 3}, {'Description': ['country 00 country _ 01 local local _ 06 industry sector metals gender male employee type third party ( remote ) critical risk activity fall prevention year 2017 month january day 20 may weekday friday weekofyear 3 season summer is _ holiday weekend no clean _ description at hours mr cesar tellomoinsac was carrying out now the work up of assembling the water line for that he climbs up the cave cat ladder and at an exact approximate height of meters however he vanishes and falls hitting one himself on the way being transferred to the medical center for his attention'], 'Accident Level': 3}, {'Description': ['country country _ 01 2014 local _ 06 industry sector metals gender male employee employee third strike ( remote ) critical risk fall prevention year 2017 month january 29th friday weekday friday weekofyear 3 season summer is _ holiday no clean _ description at hours mr cesar romero was carrying out the work while monitoring the water line for that he climbs up the cat ladder and over an approximate height of meters he vanishes and falls upon himself on the way being transferred to the medical center for his attention'], 'Accident Level': 3}, {'Description': ['country country _ 03 01 local local _ 06 travel industry sector metals gender male employee type third party ( remote ) critical risk fall prevention year 2017 month january day 20 weekday friday weekofyear 3 season summer is _ holiday no limit clean _ description at hours mr cesar sanchez tellomoinsac was carrying out the basic work tasks of assembling the water line precisely for that he nearly climbs up the cat ladder and at an approximate height of meters he vanishes and falls hitting himself twice on the way after being transferred to the medical center for his attention'], 'Accident Level': 3}, {'Description': ['Country International_01 Local Local_06 Industry Technology Metals Gender Male Employee Type Third Party (Remote) Critical Risk Fall 2013 Year 2017 Month January Day 20 Weekday Friday - dry season Summer is_holiday No clean_description 3 hours mr cesar tellomoinsac was carrying out the work of assembling the water line for that he climbs up the cat ladder and at an extreme height of meters he vanishes and lands hitting himself on the floor being transferred to the medical center for his replacement'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party (Remote) Incident Critical Risk Fall prevention Year 2017 Month January Day 20 Weekday End Friday 8 WeekofYear June 3 season Summer is_holiday No clean_description at hours mr cesar tellomoinsac was carrying out with the work of assembling the water line for that he easily climbs up the cat ladder and at an approximate safe height of 8 meters he vanishes and possibly falls after hitting himself on the way being transferred to the medical center for his attention'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 11 Weekday Friday WeekofYear 45 season Spring is_holiday No clean_description approximately at am mr wilmer approaches the c drying tower for the placement of a blanket to cover the entrance manhole of the tower at that moment the manhole cover resting on the railing slides impacting on his right leg', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 06 Branch Metals Gender Male Employee Type Critical Risk Other Year 2016 Month November Day 11 Weekday Friday WeekofYear 45 Season Spring is Vacation No clean description About half past six Mr Wilmer approaches the c drying tower for placement of a ceiling to cover the entrance shaft of the tower at this moment, the manhole cover resting on the railing slides hitting his right leg'], 'Accident Level': 3}, {'Description': {'Description': 'The manhole cover resting on the railing slides impacting on his right leg. Mr wilmer was hit as he went to cover the entrance manhole of the tower'}, 'Accident Level': 3}, {'Description': ['country b _ 01 local local _ 06 commercial waste metals gender male partner type employee critical risk others year 2016 month november day 11 weekday friday weekofyear 2 season spring is _ holiday no clean _ description approximately at am mr wilmer approaches the c drying tower upon the placement on a blanket to cover the back manhole of the cabin at that moment the manhole cover resting on the railing slides impacting on my right leg'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male employee type employee critical risk others year 2016 month november day 11 wednesday weekday 6 friday weekofyear 45 season spring is _ holiday no clean _ description approximately at am mr wilmer he approaches at the c drying tower for the placement work of some a blanket to cover the fire entrance manhole plate of inside the tower at that moment the manhole cover and resting on the railing slides impacting on his right leg'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry resource metals gender male occupations type employee critical risk occupations occupations 2016 month november day 11 weekday 4th weekofyear 45 season spring break _ holiday no clean _ description wednesday at am mr wilmer approaches the c drying tower for the placement of a blanket to cover the entrance manhole into the tower at that moment the manhole cover resting on the railing towards impacting on distal right leg'], 'Accident Level': 3}, {'Description': ['country registration country _ 01 local local _ 06 industry specific sector metals average gender male employee type employee facing critical vulnerability risk others year 2016 calendar month november day 11 weekday friday weekofyear 45 season spring is _ holiday no clean _ description thursday approximately at am mr wilmer approaches the c drying tower for the downward placement modification of a blanket to cover the entrance manhole of the tower at that moment the manhole cover resting on the railing slides impacting on his exposed right leg'], 'Accident Level': 3}, {'Description': ['Country National_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 11 Weekday 4 WeekofYear 45 season Spring summer_holiday No clean_description approximately at am mr hours outside the c drying tower for the placement of some blanket to cover the entrance gateway for the tower at The moment the manhole cover resting on the railing slides over on his right leg'], 'Accident Level': 3}, {'Description': ['Country Status Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Job Year 2016 Month November Day 11 Weekday Friday WeekofYear November 45 season Spring is_holiday No clean_description On approximately at am on mr wilmer approaches the new c drying tower for the placement of a blanket to cover the entrance manhole of the tower at about that moment the manhole cover resting on the top railing also slides impacting on destroying his right leg'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Suspended Loads Year 2016 Month September Day 4 Weekday Sunday WeekofYear 35 season Spring is_holiday No clean_description in section in row cell the worker performs anode lifting to correct short circuit using the auxiliary hoist and nylon sling at which time the sling is released from the anode and hits the back of the right hand causing it the injury worker is seen in the medical and transferred to a clinic for external evaluation', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Exposed Loads Year 2016 Month September Day 4 Day of the Week Sunday Weekend Year 35 Season Spring Is Vacation No clean description in the section in the row cell of workers performs anode lifting to correct short circuit using the sling of aids and nylon sling, the sling being detached from the anode and hitting the back of the right hand, whereby the injured worker is medically seen and taken to a clinic for external assessment'], 'Accident Level': 3}, {'Description': {'Description': 'The worker performs anode lifting to correct short circuit using the auxiliary hoist and nylon sling. The sling is released from the anode and hits the back of the right hand causing it the injury worker is'}, 'Accident Level': 3}, {'Description': ['country international _ 01 local local _ 06 industry sector metals gender male employee male employee critical risk suspended loads year 2016 month september day 4 weekday sunday weekofyear 35 season spring is _ holiday no clean _ description in section in row cell the worker performs anode tests to correct short circuit using the auxiliary battery and nylon sling at which time the battery is released from the anode and hurts the back of the right hand causing it the injury practitioner is seen in the hospital and admitted to a clinic before external evaluation'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male employee employee and type employee critical risk suspended loads year 2016 month september day november 4 september weekday sunday weekofyear 35 season spring is _ holiday no clean _ description in section in row cell the worker performs anode lifting to correct short circuit using both the auxiliary hoist and nylon sling at which time the sling stick is released from the anode and hits the back of the injured right hand causing it the resulting injury worker is seen in the base medical building and transferred to a clinic for external evaluation'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 1 industry sector metals export preference employee type employee critical risk suspended loads year 2016 month september 2018 4 month sunday weekofyear 35 season spring is _ holiday no clean _ monday tuesday january in info cell the worker performs anode lifting to correct short circuit using the auxiliary hoist and nylon sling at which time the sling is released from the anode and hits the back of the right hand using it the injury worker is seen in the medical and transferred to a clinic for external evaluation'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 06 industry sector metals gender male employee type employee critical risk minimum suspended job loads year 2016 month september day 4 weekday break sunday weekofyear 35 season spring is _ holiday no 2 clean _ description given in section in row cell the worker performs anode lifting to correct short circuit using the auxiliary hoist ring and nylon sling at all which time the sling is released from under the anode and hits the back of the right hand causing it the hand injury worker dies is seen in the medical and transferred to a clinic for external evaluation'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_06 Industry Construction Metals Gender Male Employment Type Employee Critical Risk Suspended Loads Year 2016 30 September Day 4 Weekday Sunday WeekofYear 35 season Spring is_holiday Season other_description in section in row cell the worker performs circuit cutting to correct short circuit using the auxiliary hoist and nylon sling at which time the sling is released from the anode and hits the thumb of the right hand causing it the injury worker is seen in the eye and taken to a clinic for external evaluation'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Status Critical Risk Suspended Loads Year Number 2016 Month September Day Sunday 4 Weekday Sunday WeekofYear 35 season Spring is_holiday No clean_description in section in row cell the worker roughly performs anode lifting to correct short circuit using the usual auxiliary magnetic hoist and nylon sling at which time the improvised sling is released from the anode and hits the back of the right hand causing it the injury worker is seen in the medical and possibly transferred immediately to a clinic area for external evaluation'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk remains of choco Year 2017 Month June Day 18 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description being am the driver of the aeq plate dump truck ton was heading to the loading area nv ob tj bp parking and proceeding with the ore loading with the scoop ydrs at that moment lift the first scoop towards the hopper and a large bank falls causing the tipper to shake violently and the operator to be hit with the gear lever communicate with the supervisor and evacuated to the medical center', 'Accident Level': 3}, {'Description': ['Country Country Country Country Location Region 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Remnants of Chocolate Year 2017 Month June Day 18 Weekday Sunday Weekend Year 24 Season Autumn Is Vacation No Clean Description Since I was the driver of the aeq record tipper bin on the way to the loading area nv ob tj bp Parking and driving with the ore loading with the shovels at that moment lift the first shovel towards the funnel and a large bench falls, causing the tipper to shake violently and the operator is hit with the control lever communicate with the supervisor and evacuated to the medical center'], 'Accident Level': 3}, {'Description': {'Description': 'The driver of the aeq plate dump truck ton was heading to the loading area nv ob tj bp parking and proceeding with the ore loading with the scoop ydrs at that moment lift the first scoop towards the hopper and a large'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local village _ 04 industry sector mining gender male employee type third party critical risk remains of choco for 2017 month june day 18 weekday sunday weekofyear 24 season autumn is _ holiday no clean _ description being am the driver drove the aeq plate dump truck and was heading to the loading area during ob tj bp parking and finishing with the ore loading with three scoop ydrs at that moment lift the first scoop towards the hopper and a large bank falls causing the tipper to shake violently that heavy operator to be confused with the gear lever communicate with the supervisor and evacuated to the medical center'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining employee gender male employee type third party critical risk project remains of exploration choco year 2017 month june day 18 weekday sunday weekofyear 24 season autumn is _ holiday no clean _ description being am the driver of the aeq plate dump truck ton was heading to the loading area nv r ob tj bp parking and proceeding with the ore loading with the scoop ydrs and at right that moment lift the first scoop bin towards the hopper and a large bank then falls causing the tipper to shake violently open and the operator to be hit with the gear lever communicate with the supervisor and evacuated to enter the medical center'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male worker type third party occupation risk remains of choco year 2017 month june day 18 weekday sunday weekofyear 24 season autumn is _ holiday no notification _ description being am the driver of the aeq plate foreman truck ton was heading to the loading area nv ob tj h v and proceeding with container ore loading with the scoop ydrs at that moment lift the first scoop towards another hopper forming a large bank falls causing the tipper to shake violently and the operator to be hit with the gear lever engaging with the supervisor and evacuated to the medical center'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee identification type third party critical risk remains of choco year 2017 month june 6 day 18 winter weekday sunday weekofyear 24 season autumn is _ holiday no clean _ day description being am the driver of the aeq plate dump truck ton was safely heading to the loading area nv ob tj bp parking and proceeding with inspecting the ore loading with the scoop up ydrs at that moment i lift the first scoop towards the hopper container and a large bank falls causing the tipper to shake violently and the operator to be hit with the gear lever communicate with the supervisor and evacuated to the medical conference center'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Nature of choco Year 14 Month June Day 18 December Sunday WeekofYear 24 season Autumn is_holiday No clean_description being am 1 driver of the aeq plate dump truck ton was heading to the loading area nv ob a bp parking site proceeding with the ore loading with the scoop ydrs at that moment lift the first scoop towards the hopper and a concrete cylinder falls causing the tipper to shake violently and the operator then get hit with the gear lever communicate with the supervisor and evacuated to the medical center'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Environmental Critical Risk remains of choco Year 2017 Month June Day 18 Weekday Sunday Closed WeekofYear Nov 24 season Autumn is_holiday No clean_description being am the driver of the aeq plate dump truck ton was heading to the loading terminal area at nv ob tj bp parking and proceeding with the ore loading with the scoop on ydrs at that moment lift the first ore scoop towards the hopper and a large bank falls loose causing the loading tipper to shake violently and the operator to be hit with the gear lever communicate with immediately the supervisor and evacuated to the medical center'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month February Day 9 Weekday Thursday WeekofYear 6 season Summer is_holiday No clean_description the spillway circumstances where the worker was cleaning with the use of an absorbent cloth oil residues from the right edge of the atlas axs compressor with the bonnet open and in functioning the rag falls inside the ompressor and in the attempt to remove it it is hooked on the fans propeller pulling the workers left hand toward the propeller causing the injury', 'Accident Level': 3}, {'Description': ['Country Country Country Country Location 03 Industry Sector Mining Sex Male Employee Type Third Party (Remote Control) Critical Risk Power Lock Year 2017 Month February Day 9 Day of the week Thursday Day of the week Thursday Day Year 6 Season Summer is Vacation No clean description of the circumstances in which the worker cleaned oil residues from the right edge of the atlas axle compressor with an absorbent cloth, the hood was open and in function of the rags fell into the ompressor and while attempting to remove it was hooked up to the propeller of the fan, which pulled the workers with the left hand towards the propeller that caused the injury'], 'Accident Level': 3}, {'Description': {'Description': 'A worker was cleaning with the use of an absorbent cloth oil residues from the right edge of the atlas axs compressor with the bonnet open. The rag fell inside the ompressor and in the attempt to remove'}, 'Accident Level': 3}, {'Description': ['country sector _ 01 national local _ 03 industry sector mining gender male employee type o party ( remote ) critical risk power lock year after month february day 9 weekday thursday weekofyear 6 season summer rest _ holiday summer clean _ description the spillway circumstances where the worker was cleaning with a use of an absorbent cloth oil residues from the right edge of the propeller axs compressor with the bonnet open and still functioning the rag is inside the ompressor and in the attempt to remove it it is hooked on the fans propeller pulling the workers left hand toward the propeller causing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male and employee first type third sector party ( remote ) critical risk power lock year 2017 month february day 9 weekday thursday weekofyear 6 season summer is _ holiday no clean _ description the spillway circumstances where injured the worker was cleaning with the minimum use of an absorbent canvas cloth oil residues from the right edge of the atlas axs compressor with the bonnet open and in functioning the rag falls inside the ompressor and in the attempt to remove it it is hooked tight on the fans left propeller pulling towards the trapped workers left hand toward the propeller causing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 month 31 day 1 weekday thursday weekofyear 6 season day is _ holiday no clean _ description the hazardous circumstances where the diver was cleaning with the use of an absorbent cloth oil residues from the butt edge of the atlas axs compressor with the bonnet open and in functioning a rag falls inside the ompressor capsule in the attempt to remove it it is hooked towards the fans propeller pulling the workers left hand toward opposite propeller causing the injury'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 petroleum industry sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 entry month february day 9 spring weekday thursday weekofyear 6 season summer is _ holiday no clean _ description the oil spillway causing circumstances where the worker was cleaning with the use of an absorbent cloth oil cleaning residues from the right edge of the atlas axs outlet compressor with the bonnet open and in functioning the rag it falls inside the ompressor and automatically in the attempt to remove residue it it is hooked on the fans propeller pulling the workers left hand toward the propeller causing the injury'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Technical Contract Type Third Party (Remote) Critical Risk Power lock Year 2017 Month February Day 9 Weekday Thursday WeekofYear 6 season Summer is_holiday No clean_description the spillway circumstances where the worker was cleaning with the use of an absorbent cloth oil flies from behind under arm of the atlas axs compressor with the bonnet open and in functioning a rag falls inside the ompressor and in his attempt to remove it it was hooked on the fans propeller pulling the workers left hand toward the propeller with the injury'], 'Accident Level': 3}, {'Description': ['Country 2018 Country_01 Local Local_03 Area Industry Sector Gold Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month February Day 9 Weekday Thursday WeekofYear 6 season Summer is_holiday Not No Clean clean_description the spillway circumstances where the worker was cleaning with the use of an absorbent wet cloth oil residues from the right edge of inside the atlas axs compressor with the bonnet open and in functioning the rag falls inside the aluminium ompressor and in the attempt to remove it underneath it is hooked on the fans propeller pulling the unconscious workers left hand toward the propeller causing the injury'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 4 Weekday Friday WeekofYear 44 season Spring is_holiday No clean_description when observing the pulp overflow of the overflow reception drawer of the thickener the filter operator approaches to verify the operation of the c pump making sure that it was stopped so press the keypad to start the pump and not getting the start proceeds to remove the guard and manipulates the motor pump transmission strips being left hand imprisoned between the pulley of motor and transmission belt', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2016 Month November Day 4 Weekday Friday Weekend Year 44 Season Spring is _ holiday No clean _ description When observing the overflow of pulp in the overflow drawer of the thickener, the filter operator approaches to check the operation of the C pump and make sure it has been stopped, so press the keyboard to start the pump, and if the start does not take place, it removes the cover and manipulates the motor pump transmission strips that are jammed with the left hand between the pulley of the engine and the transmission belt'], 'Accident Level': 3}, {'Description': {'Description': 'The filter operator approaches to verify the operation of the c pump making sure that it was stopped so press the keypad to start the pump and not getting the start proceeds to remove the guard and manipulates the motor pump transmission strips.'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 2016 month november day 4 weekday friday weekofyear 44 season spring is _ holiday no clean _ description when reading the pulp size of the overflow reception drawer of the thickener the filter operator approaches but verify the operation of the c cutter making sure that it was stopped so press a keypad to start the pump and not at time start proceeds to remove the guard and manipulates the motor pump transmission strips by fixed hand imprisoned between the pulley of motor and power belt'], 'Accident Level': 3}, {'Description': ['country country _ 01 site local local _ 03 industry sector mining gender male employee type employee critical risk others year 2016 month november day 4 weekday morning friday weekofyear 44 season spring is _ holiday no clean _ description when observing the pulp overflow of the tank overflow reception drawer of the thickener the filter operator approaches to verify the operation of the c pump making sure that it was stopped so press the keypad to start the motor pump and not getting the start proceeds for to remove the guard and automatically manipulates the suspension motor pump transmission that strips being left hand is imprisoned between the pulley of motor pump and transmission belt'], 'Accident Level': 3}, {'Description': ['country country _ 01 local office _ 03 industry sector mining gender male employee type employee critical risk others year 2016 month november day 4 weekday friday month 44 season spring is _ holiday no clean _ description after observing the pulp content of the overflow reception drawer of the thickener the filter operator approaches to verify the operation of a c pump making automatically if it is stopped so press the keypad to start the filter and not getting the customer proceeds to remove the guard and manipulates the motor pump transmission strips being left hand imprisoned between the pulley of motor and transmission belt'], 'Accident Level': 3}, {'Description': ['2008 country country _ 01 local local _ 03 industry sector occupational mining gender male employee type employee critical risk others year 2016 month november day 4 weekday friday weekofyear 44 season saturday spring 2016 is _ holiday no longer clean _ description when observing the pulp overflow of the overflow reception drawer of the thickener the filter operator approaches to verify the operation of the c pump making sure that it was stopped so press the keypad to start the pump and not getting the start proceeds manually to remove the guard and manipulates the motor pump switch transmission strips being left hand imprisoned between exiting the regulator pulley of motor and transmission valve belt'], 'Accident Level': 3}, {'Description': ['Country Country_01 Age Local_03 Industry Total Mining Gender Male Job Type Employee Critical Risk Others Year 2016 Month First Day 4 Weekday Friday WeekofYear 44 season End is_holiday No clean_description when observing the pulp state of the overflow reception drawer of the thickener the filter operator approaches to verify of operation of the c pump making sure that it was stopped so press the keypad to start this pump and not getting the start proceeds to remove the guard and manipulates the motor pump transmission strips being left hand imprisoned between the pair of filters and transmission belt'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local 02 Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Season Year 2017 2016 Month November Day 4 Weekday Friday WeekofYear 44 season Spring is_holiday No clean_description when observing closely the pulp overflow of the brush overflow reception drawer of the DC thickener the filter filter operator approaches to verify the smooth operation of the c pump making sure that it was stopped so press the keypad to start the pump and when not getting the start then proceeds to remove the guard and manipulates the motor pump transmission strips being left hand imprisoned between the pulley of motor and transmission belt'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Pressed Year 2017 Month February Day 14 Weekday Tuesday WeekofYear 7 season Summer is_holiday No clean_description in the nv cx south when the mechanic loosens a through bolt of the intermediate cardan protector of the dumper the protector is released and imprisons the first finger of the left hand against the connector of the hydraulic steering cylinder position', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Pressed Year 2017 Month February Day 14 Weekday Tuesday WeekofYear 7 Season Summer is Vacation No clean description in nv cx South, when the mechanic loosens a continuous screw of the middle cardan protector of the tipper, the protector is released and holds the first finger of the left hand against the connection of the hydraulic steering cylinder position'], 'Accident Level': 3}, {'Description': {'Description': 'The nv is_holiday No clean_description in the nv cx south when the mechanic loosens a through bolt of the intermediate cardan protector of the'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local life _ 03 industry sector mining gender male employee sex third child critical risk pressed year 2017 month february day 14 weekday tuesday weekofyear 7 march summer is _ good 2015 clean _ description in the nv cx south when his mechanic loosens a through bolt of the intermediate cardan protector of the dumper that protector bolt released and imprisons the first finger of the left hand against the connector of his hydraulic steering cylinder position'], 'Accident Level': 3}, {'Description': ['the country registered country _ 01 local local _ 03 industry sector of mining gender male employee type third party critical load risk pressed year 2017 month february day 14 weekday tuesday weekofyear 7 season summer is _ holiday no clean _ description in the nv cx for south when the mechanic loosens a through bolt of the intermediate cardan protector of working the hose dumper the protector is first released and he imprisons the first finger of the left hand against the connector of the hydraulic steering shaft cylinder position'], 'Accident Level': 3}, {'Description': ['country country _ 01 local v _ 03 single sector mining gender dependent factor type third party critical risk pressed year 2017 month february day 7 weekday tuesday weekofyear 7 season summer is _ holiday no clean _ description in the nv cx south when the brake loosens a through bolt of the intermediate cardan protector of the dumper the protector is released and imprisons the first finger of the left thumb against the dashboard locking the manual steering cylinder position'], 'Accident Level': 3}, {'Description': ['2007 country country _ 01 local 09 local _ 03 industry sector neutral mining gender male employee type third party annual critical risk pressed year 2017 labor month february day 14 weekday tuesday weekofyear 7 season summer is _ holiday no monday clean _ description occurs in the circular nv cx zone south when the mechanic loosens a through bolt of the intermediate cardan grip protector of the dumper the protector is released and imprisons the first finger of the left hand against the connector of the hydraulic steering cylinder position'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Pressed Year 2017 Month February Day 14 Weekday 2017 WeekofYear 7 season Summer Low_holiday No clean_description by the nv cx south when the mechanic loosens his through bolt of each intermediate cardan artery of the dumper the protector is released then imprisons the three fingers of the left hand against the connector of the hydraulic steering cylinder circuit'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Equipment Gender Male Employee Type Third Party Critical Event Risk Pressed Year 2017 Next Month February Day 14 Tuesday Weekday Tuesday WeekofYear 7 season Summer is_holiday day No clean_description Days in the nv cx south As when the mechanic loosens a through bolt nut of the intermediate cardan protector of the dumper the protector is released and imprisons the first finger wave of the left hand against the connector opening of the hydraulic steering cylinder position'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 30 Weekday Saturday WeekofYear 17 season Autumn is_holiday No clean_description in the ddh chamber of the company explomin located at the level socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq meters of steel with a weight of kg using a stilson key no at that moment the operator operates the rotation unit the drill rod rotates by pressing the left hand of the worker against the base of the rod holder causing an injury to the left hand at the time of the accident the drilling assistant used rubber gloves', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month April Day 30 Weekday Saturday Weekday Weekday Week Week Year 17 Season Autumn is Holiday No clean description in the ddh chamber of the company explolomin located on the level Socorro ramp when the worker wizard drill bit dismantling the fifth drill rod nq meter steel weighing kg with a stilt key no at this time the operator operates the rotary unit rotating the drill rod by pressing the left hand of the worker against the base of the rod holder, causing an injury to the left hand at the time of the accident the drill wizard used rubber gloves'], 'Accident Level': 3}, {'Description': {'Description': 'The accident occurred in the ddh chamber of the company explomin located at the level socorro ramp. The worker assistant driller was dismantling the fifth drill rod nq meters of steel with a weight of kg using a stilson key no.'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party to risk others year 2016 month 1 day 30 weekday saturday weekofyear 17 season autumn is _ holiday no clean _ weather in the ddh chamber of the underground explomin located at the level socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq meters of steel to a weight of kg using a stilson key no at that moment the operator operates the rotation unit the replacement rod rotates by pressing the left hand playing the worker against the surface of the rod or causing an injury to the left hand at the time of any accident the drilling assistant used rubber gloves'], 'Accident Level': 3}, {'Description': ['country country _ chapter 01 local local _ 03 industry sector mining gender male employee type third party critical risk others year 2016 month april day 30 weekday 10 saturday weekofyear 17 season 18 autumn is _ holiday no clean _ description in 2006 the ddh chamber of the company explomin are located at the level 15 socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq 50 meters of steel with a weight of kg 6 using a stilson key no at that moment the operator operates the rotation unit the drill rod rotates by pressing on the left hand of the worker against the base of the rod holder causing an injury to the left hand at the time of the accidental accident the drilling assistant used rubber gloves'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry occupations mining gender male employee type third party critical risk others year 2016 month april day 30 weekday saturday weekofyear 17 season 2017 is _ holiday 2016 clean _ description in the ddh chamber of the company drill located at the ex socorro ramp when the worker becomes drillerwas dismantling the fifth drill rod nq meters of steel with a weight of kg using a stilson key no at that moment the operator operates the rotation unit the drill rod rotates whilst pressing a left hand of the worker against the base of the pin holder causing an injury to the left hand at the time of the accident the pit assistant used rubber gloves'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male male employee type third party critical risk others year 2016 month april day 30 weekday saturday weekend weekofyear 17 season autumn is _ holiday no longer clean _ description in the ddh chamber of the company explomin located at the level socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq meters of steel with a weight of kg using a stilson key... no at that moment the operator operates the rotation gear unit the drill rod rotates by pressing pressing the left hand blade of the worker against the base of rod the rod holder causing causing an injury to the left hand at the time of the accident the drilling assistant assistant used rubber gloves'], 'Accident Level': 3}, {'Description': ['Country Local_01 Local Local_03 Industry Sector Mining Type Male Employee Type Labour Party Critical Function Others Year 2016 Month April 2014 September Weekday Saturday Sunday 17 season Autumn is_holiday No clean_description in the ddh chamber of the company explomin located at the level socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq meters of steel with aggregate weight of kg using a stilson key no at that moment the operator operates the rotation unit the drill head rotates by pressing the left hand of the worker against the base under the rod holder causing an injury to the left hand at the time of the accident the drilling assistant used rubber gloves'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 30 Day Weekday Saturday WeekofYear 17 season Autumn is_holiday No the clean_description in the ddh chamber of the company explomin located at the level socorro ramp when operating the drill worker assistant drillerwas dismantling the fifth drill rod nq meters of steel with a weight of kg each using a stilson key no at that moment the operator operates the rotation control unit the drill box rod rotates by pressing the left hand of the worker against the base of the rod holder causing an injury to the left hand at the time of the accident the work drilling assistant used of rubber protective gloves'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described', 'Accident Level': 3}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Other Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is _ holiday No clean _ description in the area of maestranza the mechanical hurt was operating the bank drill a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanical albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill lifts the chuck and albino does the iron and verifies that it is fine and communicates they will restart with the other holes that moment the victim without apparent cross his left arm with the drill on and is caught by the drill in his work clothes causing the injuries.'], 'Accident Level': 3}, {'Description': {'Description': 'Mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip. Victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described.'}, 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type year critical risk others year 2017 month may day 16 weekday tuesday weekofyear 2 season autumn is _ holiday no clean _ description in the history of machine tools of the maestranza the mechanic injured after operating the bench drill drilling a metal jacket of x x lining to install in the skip 2 moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to drop the drill to monitor the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on he got caught by the drill in his work place causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type employee critical risk others year 16 2017 month may 1 day 16 weekday tuesday weekofyear 20 dry season autumn is _ not holiday no monday clean _ description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck hammer and albino pulls the iron and jase verifies that everything is fine and communicates that they will restart with the drilling unit of the other holes that moment the victim without apparent reason crosses his left arm while with the drill on and is caught by the drill in wearing his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee key employee critical risk others location 2017 month may day 16 weekday tuesday weekofyear 20 holiday autumn is _ holiday no clean _ description in the area the machine tools of the maestranza the mechanic injured was operating the bench job drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the clutch and directed the maneuvers on the right side of the drill man albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will return with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the force in his work jacket causing the injury described'], 'Accident Level': 3}, {'Description': ['country country _ 01 local local _ 02 03 industry sector mining gender male employee type employee critical risk others year 2017 month may day 16 weekday tuesday weekofyear 20 season autumn is _ holiday occupation no clean _ description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was unexpectedly accompanied by the mechanic mechanic albino who manipulated the jacket twice and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck harder and albino pulls the iron and verifies that everything is fine and communicates that they will restart with drilling the drilling of the other holes that moment the victim without apparent reason crosses his left broad arm with the drill on repeat and soon is caught by the drill in his work clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in one area of machine tools of the maestranza the mechanic injured was operating the heavy drill drilling a metal jacket of x x lining to install in the skip this moment he was saved by the local albino who manipulated the jacket and directed the maneuvers on the rear side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes here moment the man beyond apparent reason crosses his left arm for the drill on and is caught by the drill in his body clothes causing the injury described'], 'Accident Level': 3}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year April 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the maestranza the mechanic injured was operating with the bench drill drilling a metal jacket section of x x lining zinc to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him him to stop the drill to verify the true depth of the drill as luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the same injury he described'], 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2017 Month May Day 16 Weekday Tuesday WeekofYear 20 season Autumn is_holiday No clean_description in the area of machine tools of the maestranza the mechanic injured was operating the bench drill drilling a metal jacket of x x lining to install in the skip this moment he was accompanied by the mechanic albino who manipulated the jacket and directed the maneuvers on the right side of the drill mr albino tells him to stop the drill to verify the depth of the drill luis lifts the chuck and albino pulls the iron and verifies that everything is fine and communicates that they will restart with the drilling of the other holes that moment the victim without apparent reason crosses his left arm with the drill on and is caught by the drill in his work clothes causing the injury described', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 18 Weekday Friday WeekofYear 11 season Summer is_holiday No clean_description approximately at am in circumstances that the messrs of the truck crane and william de la cruz culminated the shipment of blocks of metal plates with an approximate weight of kg mr william de the cross rigger climbs onto the truck to remove the sling places both feet under the stretcher that supported the metal plates at that moment the central part of the stretcher is broken as a result of which the two feet are imprisoned producing the injury', 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Pressed Year 2016 Month October Day 29 Weekday Saturday WeekofYear 43 season Spring is_holiday No clean_description in the activity of placing boards on racks for the exchange of fabrics of the filters one of the plates was inclined trying to put the plate in the correct position the plate arm pressed the back of the right hand against the structure of the easel', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 10 Weekday Sunday WeekofYear 27 season Winter is_holiday No clean_description the operator of the paste filling plant removes a floor grating x cm to clean the lower floor it is removed to close the water valve and does not block the vacuum the two technicians who were entering the filter belt notice an overflow and ask the operator to reduce the load the mechanics kept walking without noticing the floor and one of them falls into the void impacting his foot left at an angle that was about cm below the floor grating producing the injury', 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_08 Industry Sector Metals Gender Male Employee Type Employee Critical Risk \nNot applicable Year 2016 Month June Day 17 Weekday Friday WeekofYear 24 season Autumn is_holiday No clean_description at approximately pm the operator paulo operator of the filters informed the autoclave operator via radio of a leak on the side of the scruber the autoclave iii feed was stopped by the control and officials georli and renato initiated the procedures for closing the autoclave transfer valve for flash tqs soon after there was a break in the chicken projecting pulp hot and reaching three employees who were inside the room near the equipment', 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_02 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Others Year 2016 Month August Day 11 Weekday Thursday WeekofYear 32 season Winter is_holiday No clean_description during the withdrawal of the fixed jaw wedge from the crusher br the hoisting device hook was broken causing the steel cable of the overhead crane to strike the left hand of the employee', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month October Day 18 Weekday Tuesday WeekofYear 42 season Spring is_holiday No clean_description in circumstances that the assistant of mine was arranging to advance the hose of flexible nylon of of diameter to proceed with the watered of shot fired positioning itself under a zone with the support deteriorated by the last blasting moment in which it gives off a block of rock cmxcmxcm kg of the roof of the work of a height of meters which when falling hits by rebound in the left leg of the collaborator causing the described injury', 'Accident Level': 3}, {'Description': 'Country Country_03 Local Local_10 Industry Sector Others Gender Male Employee Type Third Party Critical Risk Poll Year 2016 Month March Day 24 Weekday Thursday WeekofYear 12 season Summer is_holiday No clean_description when performing the sleeve removal maneuver when the hole was meters deep general da silva pressed only one side of the locking nut of the rods which together with the jack holds the entire weight of the rods in the maneuver as the locking procedure was not effective the weight of the rods was only secured by the steel wire rope of the probe winch at the moment that driller pedro released the brake of the winch the inefficacy of the locking done only in one side of the chestnut and without aid of the monkey caused the sliding of the rods auxiliary was prepared for manual unlocking of the rods holding the faucet key firmly against the probe tower as the composition shifted as the stems slid his hands were shifted downward causing his left hand to strike against the base of the probe tower structure causing cuts to the th and th quirodactyl employee was taken to the hospital where he went through medical care wound was sutured with stitches same was removed for days from his activities', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Fall prevention (same level) Year 2016 Month June Day 8 Weekday Wednesday WeekofYear 23 season Autumn is_holiday No clean_description at approximately pm on the operator eustaquio falls down from the metal platform that gives access to tank d of the strong acid leaching stage and suffers luxofractures in the wrist left when leaning on the floor with his hand the operator was directed to the first tank of the strong acid leaching stage tk d to verify the entry of spent to the taque', 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Projection Year 2017 Month May Day 6 Weekday Saturday WeekofYear 18 season Autumn is_holiday No clean_description the employees mrcio and srgio performed the pump pipe clearing activity fz and during the removal of the suction spool flange bolts there was projection of pulp over them causing injuries', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Electrical installation Year 2016 Month February Day 2 Weekday Tuesday WeekofYear 5 season Summer is_holiday No clean_description in moments that the operator of the jumbo tried energize your equipment to proceed to the installation of split set at intersection of nv remove the lock and opening the electric board of v and a and when lifting the thermomagnetic key this makes phase to ground phase contact with the panel shell producing a flash which reaches the operator causing the injury described', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month March Day 22 Weekday Tuesday WeekofYear 12 season Summer is_holiday No clean_description during the refurbishment work of the hdpe pipes of diameter with two workers when the worker who secured the pipe with a chain standing on the basket of the ampoloader raised to a height of m from the ground the pipe slipped and impacted his arm right causing an injury to the radius of the right arm', 'Accident Level': 3}, {'Description': 'Country Country_02 Local Local_07 Industry Sector Mining Gender Male Employee Type Employee Critical Risk remains of choco Year 2017 Month April Day 25 Weekday Tuesday WeekofYear 17 season Autumn is_holiday No clean_description activity front sanitation slaughter of choco with scaller local underground mine level front upper jka the operator performed front sanitation when a rock block from the roof hit the equipment the accident victim was promptly rescued by the units emergency brigade and transported to the outpatient clinic where he received the first care and was then transferred to the municipal of paracatu', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month January Day 10 Weekday Sunday WeekofYear 1 season Summer is_holiday No clean_description approximately at am in circumstances that the mechanics anthony group leader eduardo and eric fernndezinjuredthe three of the company impromec performed the removal of the pulley of the motor of the pump in the zaf of marcy cm length cm weight kg as it was locked proceed to heating the pulley to loosen it it comes out and falls from a distance of meters high and hits the instep of the right foot of the worker causing the injury described', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 19 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description the operator of the scissor leaves his equipment parked at level acc due to electrical problems when the maintenance personnel arrives the electrician climbs on the control platform of the equipment and performs the verification of the hydraulic system confirming the problem then in coordination with the mechanic decide to perform the test with the diesel system moments in which accidentally activates with the body the arm movement lever causing the drill arm to move downwards generating the left hands atricion against the support of the pivot tube generating the lesion described at the time of the accident the electrician was alone on the control platform while the mechanic was at ground level observing the pressure on the diesel system pressure gauge', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Fall Year 2017 Month February Day 25 Weekday Saturday WeekofYear 8 season Summer is_holiday No clean_description during the mining cycle at the chimney before starting with the drilling work to anchor the lane of the alimak system the collaborator squat to pick up a manual tool that is on the platform it is at this moment that the jackleg team loses its position and projects towards the back of the collaborator generating the injury', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Third Party (Remote) Critical Risk Fall prevention Year 2017 Month January Day 20 Weekday Friday WeekofYear 3 season Summer is_holiday No clean_description at hours mr cesar tellomoinsac was carrying out the work of assembling the water line for that he climbs up the cat ladder and at an approximate height of meters he vanishes and falls hitting himself on the way being transferred to the medical center for his attention', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 11 Weekday Friday WeekofYear 45 season Spring is_holiday No clean_description approximately at am mr wilmer approaches the c drying tower for the placement of a blanket to cover the entrance manhole of the tower at that moment the manhole cover resting on the railing slides impacting on his right leg', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_06 Industry Sector Metals Gender Male Employee Type Employee Critical Risk Suspended Loads Year 2016 Month September Day 4 Weekday Sunday WeekofYear 35 season Spring is_holiday No clean_description in section in row cell the worker performs anode lifting to correct short circuit using the auxiliary hoist and nylon sling at which time the sling is released from the anode and hits the back of the right hand causing it the injury worker is seen in the medical and transferred to a clinic for external evaluation', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk remains of choco Year 2017 Month June Day 18 Weekday Sunday WeekofYear 24 season Autumn is_holiday No clean_description being am the driver of the aeq plate dump truck ton was heading to the loading area nv ob tj bp parking and proceeding with the ore loading with the scoop ydrs at that moment lift the first scoop towards the hopper and a large bank falls causing the tipper to shake violently and the operator to be hit with the gear lever communicate with the supervisor and evacuated to the medical center', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month February Day 9 Weekday Thursday WeekofYear 6 season Summer is_holiday No clean_description the spillway circumstances where the worker was cleaning with the use of an absorbent cloth oil residues from the right edge of the atlas axs compressor with the bonnet open and in functioning the rag falls inside the ompressor and in the attempt to remove it it is hooked on the fans propeller pulling the workers left hand toward the propeller causing the injury', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Employee Critical Risk Others Year 2016 Month November Day 4 Weekday Friday WeekofYear 44 season Spring is_holiday No clean_description when observing the pulp overflow of the overflow reception drawer of the thickener the filter operator approaches to verify the operation of the c pump making sure that it was stopped so press the keypad to start the pump and not getting the start proceeds to remove the guard and manipulates the motor pump transmission strips being left hand imprisoned between the pulley of motor and transmission belt', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Pressed Year 2017 Month February Day 14 Weekday Tuesday WeekofYear 7 season Summer is_holiday No clean_description in the nv cx south when the mechanic loosens a through bolt of the intermediate cardan protector of the dumper the protector is released and imprisons the first finger of the left hand against the connector of the hydraulic steering cylinder position', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month April Day 30 Weekday Saturday WeekofYear 17 season Autumn is_holiday No clean_description in the ddh chamber of the company explomin located at the level socorro ramp when the worker assistant drillerwas dismantling the fifth drill rod nq meters of steel with a weight of kg using a stilson key no at that moment the operator operates the rotation unit the drill rod rotates by pressing the left hand of the worker against the base of the rod holder causing an injury to the left hand at the time of the accident the drilling assistant used rubber gloves', 'Accident Level': 3}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Electricity Cut Year 2017 Month March Day 18 Weekday Saturday Day of the Week Year 11 Season Summer is Vacation No clean description during the activity of conveyor belt change b Feeding the primary mill no the mechanic penetrated into the emptying shaft x x m to clean the material at the time the automatic sampler x m was activated, which held the mechanic at chest level at the time of the accident, the mechanic was alone in the working area'], 'Accident Level': 4}, {'Description': {'Description': 'Mechanic was alone in the work area at the time of the accident. Mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third watch ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear 11 season summer is _ holiday no clean _ description during the activity of changing conveyor belt b below the power mill no the divers entered the discharge chute a x m or clean the material at which time the automatic sampler x m that was inside the chute was activated trapping any mechanic under the interior of the chest at exact time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining partner gender male employee type third party ( remote ) critical technical risk power lock production year 2017 month march day 18 weekday week saturday weekofyear 11 season summer is _ holiday no clean _ description occurred during the activity of changing conveyor belt b feeding the small primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m located that was inside the discharged chute was activated trapping the mechanic at the height point of the chest at the time of the accident the mechanic was alone or in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 02 local _ 03 industry sector mining gender male employee type third party ( remote ) critical task power lock year 2017 month march day 18 weekday saturday weekofyear 11 season summer vacation _ holiday no clean _ description during the activity of changing conveyor carts b feeding the primary mill no the mechanic entered the discharge marker x x y to clean the material at which velocity the automatic sampler or meter that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in station work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector regulated mining gender male employee type employee third party ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear 11 season holiday summer is _ holiday no planet clean _ description during the activity area of changing conveyor belt b feeding the primary mill no the mechanic regularly entered the discharge chute 2 x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping down the mechanic at the height end of the chest at the time of the accident the mechanic was standing alone in the work area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Method Plant Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer Weekend_holiday No clean_description during the activity on changing conveyor belt b in the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time this automatic sampler x m that was inside the chute was activated trapping the mechanic at an height of working chest to the time of the accident the mechanic was alone in the loading area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power Cons lock Weight Year 2017 Current Month March Day 18 Weekday Saturday WeekofYear 11 Fall season 4 Summer is_holiday No clean_description during the activity of changing with conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at the which time the automatic sampler x i m that was inside the chute was activated trapping the mechanic at the height of the chest at on the time of the accident the mechanic who was alone in the work area'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is _ holiday No clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visuals a truck that was parked with the lights and the engine ignited inside the nudge where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can then return it to his coop and at to meters visualizes the light of a lamp shining in the direction of the goble when he finds the detote lying on the side of the scoop and proceeds to give immediate notification to the supervisory of the shift control control center and emergency center'], 'Accident Level': 4}, {'Description': {'Description': 'When the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust. The operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck operator was passing with the lights and the microphone mounted inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds the one still decides to go and look for the driver at the top of cro southern no he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased girl on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift media center and emergency center'], 'Accident Level': 4}, {'Description': ['mining country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 summer season summer is _ holiday no clean _ description when the scoop was heading north from rpa to the lowest cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights lit and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop off and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he again can not find it then as he swiftly returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying down on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description wednesday the scoop starts heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a car that was parked with the lights and the engine ignited inside the thrust signal the scoop does accumulating dismount the operator stops the scoop and gets off to tell the driver of the shovel to leave and when he finds no scoop he decides to go and look for the driver at the top of cro south where he can not find it then he returns with his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable driver approaching he finds the deceased passenger on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa offices to the cutoff turning point of the cro south to be unloaded it visualizes a truck that was secretly parked with the lights and the engine ignited inside the thrust where the scoop found accumulating and dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when returning he again finds no one he decides to go and look for the driver at the top of cro south where he can do not find it then he returns to his shovel scoop and at dawn to meters visualizes the light of a lamp shining wildly in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Manufacturer Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the loader was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes another truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds either one he decides to go and look for the driver at the top of 15 south where he can not find it Once he returns to his scoop he at to meters visualizes the light of a head shining in the direction of the gable when approaching he finds the person lying off the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 December Weekday Wednesday WeekofYear 10 season Summer is_holiday Day No clean_description when the scoop was heading from rpa to reach the last cutoff point of the cro south to be neatly unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop engine and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find any it then he returns to his scoop and at to meters visualizes the only light outside of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the other scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is _ holiday No clean _ description about pm in circumstances that sprayed concrete in the nv bp of the obb after completion of the launch of the first mixkret the assistant of alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that the access finder in the cockpit of the mixkret asks the operator of the carrier team mr danon to come down when the team started, he noticed that Mr. Danon was injured between the crew height of the left rear field and the hastial de la laboratory'], 'Accident Level': 4}, {'Description': {'Description': 'Shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkrete mr jhony to move themixkret so that access'}, 'Accident Level': 4}, {'Description': ['country country _ registered in local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 in february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb despite finishing the launch of the first mixkret the assistant within the alpha mr albertico asks the operator of new mixkret mr jhony on move the team so that access finding in the seat of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he asks that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining type gender male employee type third party critical risk others by year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing successfully the launch of the first big mixkret the assistant of training the alpha mr pedro albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the second operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and facing the right hastial de de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type unknown party critical risk others year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm day circumstances that shotcrete was launched inside the nv bp of the obb after finishing the launch of the first mixkret the navigator of the alpha mr albertico torres the operator of the mixkret mr jhony please move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team master danon asks him contact come immediately when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the coupe de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february 6 day march 20 weekday saturday weekofyear 7 season summer is _ holiday no date clean _ description approximately pm in circumstances indicating that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico gomez asks the operator of the mixkret mr martin jhony to move the original mixkret so that access finding in the cockpit orientation of the mixkret the operator of the launcher team mr danon asks him to come upside down when the pilot team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country States_01 Local Local_04 Industry Sector Mining Private Male Employee Type Third Party Critical Engineering Others Year 2016 Month February Day Sunday Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp During the startup after finishing the launch of the first mixkret the assistant of the alpha of albertico asks the operator of the mixkret mr jhony to move the mixkret so that others finding in the cockpit of the mixkret the operator with the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of his left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Government Industry Sector Mining Male Gender Male Employee Type Third Party Critical Threat Risk Others Year 2016 Month February Day Monday 20 Weekday Saturday WeekofYear 7 season Summer is_holiday Status No clean_description approximately pm observed in circumstances that shotcrete was launched from in near the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret machine mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to he come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 2 Day of the Week Saturday Day of the Week Year 26 Season Winter is Holidays No clean description when accessing the level during the installation of hydraulic filling pipes with diameter during the assembly of a section m to m height related to the floor The master of the hydraulic filling accident and his partner suffer wear of the right hand between the top edge of the shovel lamp and the roof of the work causing the injury at the time of the accident The employee used his rubber gloves'], 'Accident Level': 4}, {'Description': {'Description': 'The accident occurred during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor. The employee used his rubber gloves.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining activities male mixed type third party critical risk others year 2016 month july day 2 weekday saturday weekofyear 26 season winter is _ holiday no clean _ description in access of level during the installation activity of the filling pipes decreasing diameter when connecting a section m to a height of m with reference to the floor the master risks hydraulic filling accident and his partner suffers an attrition of the right hand against the upper edge of the scoop lamp and side roof of the work and the injury at time time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 national local local _ 03 industry sector mining gender male employee type third party critical risk others year 2016 month july day 2 weekday saturday weekofyear 26 season winter is _ holiday no clean _ snow description problem in access of level during the installation activity removal of hydraulic filling pipes of diameter when installing a section m to a height of m with reference b to the concrete floor the master of hydraulic filling accident and his partner suffers an attrition complaint of being the right hand between the upper edge of the bottom scoop pipe lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee versus third party critical risk others year 2016 month july day 2 weekday saturday weekofyear 26 fall winter is _ holiday no clean _ description in access of level during the repetitive activity of hydraulic filling pipes of diameter when installing a section m to a segment of m with reference to the floor the master of hydraulic filling is and his partner suffers an attrition of the right hand between the upper foot of the scoop lamp and the roof of the work generating immediate injury at that time of the disaster another employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['birth country country _ 01 local local _ 03 industry sector mining gender male employee type third party critical risk management others year 2016 month july day activity 2 weekday saturday sunday weekofyear 26 season winter is _ holiday no clean _ description in access order of level during the installation activity of electrical hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right upper hand between connecting the upper edge of the scoop lamp curtain and the roof of the work generating the injury at the time of the accident during the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Location Employee Type Third Party Critical Risk Others Total 2016 Month July Day 2 Saturday Saturday WeekofYear 26 season Winter is_holiday No longer_description Typical access of level during the installation activity of hydraulic pump pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers knee attrition of the right hand between the upper portion of the scoop lamp and the roof of the work with the injury at the time of the accident the practitioner used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Background Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Position Type Third Party Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity placement of hydraulic filling pipes of small diameter when installing a concrete section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the joint upper edge of the scoop point lamp and the roof of the work generating the injury at the time of the accident the employee he used his wet rubber gloves'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is _ holiday No clean _ description when taking sprayed concrete for resane on Cruise nv at pm about the operator was located on the left side of the equipment and started the release of cubic meters at that time decided to be paralyzing the task for some minute because of a leak of water in the roof box that did not allow the adhesion of the sprayed concrete to the rock setting when restart the operator that was on the squotcrete launch which was moved to the right side of the equipment while the assistant and the operator mixed to see that there was no pumping went to verify what happened and when they returned that the operator is not so they can that he see down the chimney they had asked the job, it asked the emergency response brigade and the medical service were activated that verify the death of the collaborator the investigation accident begins.'], 'Accident Level': 4}, {'Description': {'Description': 'The accident occurred when performing shotcrete casting for resane on cruise nv. The operator was placed on the left side of the equipment and started the release of cubic meters. A leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on another left side of the equipment they started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box made did not allow the returning of the shotcrete to the rock setting when restarting the shotcrete launch the user that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when i returned they realized that the operator was not so they assume that he had fallen down the chimney but left the job to ask for help immediately the emergency response brigade and the nursing service are activated who witnessed the death of the collaborator the criminal investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall may year 2017 month may 2017 day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately after the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow around the adhesion of the shotcrete to climb the rock setting when restarting the shotcrete launch the operator that still was on the left side moved to the right a side door of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical clearing service are activated who verify the death of the the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 open sector mining gender male employee type ii party relief work fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday 2013 clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task lasting a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the driver and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the deceased was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and rescue medical service sirens activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may 14 day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water holes in the roof box that did not allow the proper adhesion of the shotcrete to assist the rock setting because when restarting the shotcrete launch the safety operator that was on the left side moved to the right side front of the equipment while the assistant and the operator mixkret to see that there was evidence no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated firefighters who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Process Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when conducting shotcrete casting for resane on an nv at pm approximately the operator was placed on the left side of the equipment and started releasing release of cubic meters at that time considered to paralyze the task for a three minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete around the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was nothing pumping went inside verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left on job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Environmental Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn Winter is_holiday Week No clean_description when performing shotcrete casting for resane lift on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze finishing the task for a few minutes due to a leak of water in the roof box that did would not allow the full adhesion of the shotcrete to the rock setting when restarting to the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that after he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify to the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand', 'Accident Level': 4}, {'Description': ['Country Country Country Country Country Country Country Country Industry Industry Industry Mining Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 4 Weekday Saturday Weekday Weekend Year 22 Season Autumn is Holiday No clean description is pm about in the nv in the tecnomin winery Mr. Chagua Bodeguero was alone cutting wires no with a grinder previously he had removed the protective hood from the disc of inches in diameter and adjusted a disc of a cross cutter of about inches origin traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': {'Description': 'Mining is a mining industry in Argentina. The majority of workers work in the mining industry.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector group gender male group type third party critical risk others article 2016 month june day 4 september saturday weekofyear 22 season autumn is _ holiday no clean _ description being pm approximately in the nv in the tecnomin winery at chagua bodeguero was alone cutting wires no stopping a grinder previously he had removed this protection guard from the disk of inches in diameter and adapted a length of a crosscutter of approximately 50 originating traumatic amputation of three fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month 15 june day 4 weekday saturday weekofyear 22 season autumn is _ by holiday no clean _ description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with only a grinder previously he had just removed the extra protection steel guard from beneath the disk 48 of inches in diameter and adapted a disk of a real crosscutter of approximately inches originating traumatic amputation of two fingers reconstruction of the left hand'], 'Accident Level': 4}, {'Description': ['relevant country _ 08 local local _ 04 industry sector mining gender male employee list – highest critical risk others year 2016 month june day 4 weekday saturday weekofyear ending season autumn is _ holiday no clean _ description being pm 08 in the nv in the tecnomin winery mr chagua bodeguero worked alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches effective diameter and adapted a disk of nylon crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 unknown month june day 4 weekday saturday employment weekofyear 22 3rd season autumn is _ holiday no clean _ description being pm approximately in 1999 the nv sector in the tecnomin mining winery mr chagua bodeguero was alone cutting wires no longer with a grinder previously he had removed the protection system guard from the disk of inches in diameter and adapted a disk technique of a crosscutter of around approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Location Local_04 Industry Sector Mining Gender Education Employee Type Labor Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone before wires previously with a grinder previously he had removed the protection plate of the disk of inches in diameter and made a disk of sharp crosscutter of approximately inches originating traumatic length of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Assessment Others Name Year 2016 Month June Day 4 Weekday Saturday 29 WeekofYear 22 season Autumn usually is_holiday No all clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone with cutting wires no with a grinder previously than he had removed the protection guard area from the electrical disk of inches in diameter and adapted a disk of a crosscutter of five approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Electricity Cut Year 2017 Month March Day 18 Weekday Saturday Day of the Week Year 11 Season Summer is Vacation No clean description during the activity of conveyor belt change b Feeding the primary mill no the mechanic penetrated into the emptying shaft x x m to clean the material at the time the automatic sampler x m was activated, which held the mechanic at chest level at the time of the accident, the mechanic was alone in the working area'], 'Accident Level': 4}, {'Description': {'Description': 'Mechanic was alone in the work area when accident occurred. Mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 9 industry and mining gender male employee type construction party ( remote ) critical risk power in year 2017 month march day 18 weekday saturday weekofyear 11 season summer is _ holiday no clean _ description during the activity of changing conveyor field b feeding the primary mill no the engineer entered the discharge chute x i m to clean the material at which time the automatic sampler x m that was inside the chute remained activated trapping the mechanic at the height of the ladder near the time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry trade sector heavy mining gender male employee type third party ( no remote ) critical risk power lock registration year 2017 month march day 18 weekday saturday weekofyear 11 season summer is _ holiday week no clean _ description during the activity of changing conveyor belt b from feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m pump that was inside the chute was activated trapping the mechanic at the height of the petrol chest at the time of shooting the accident while the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 local sector mining service male employee type third party ( remote ) critical risk power lock year 2017 month march july 18 weekday saturday weekofyear 11 season summer is _ holiday no clean _ description during the use of auto conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m can clean the material at that time the automatic sampler x m that was inside the chute was accidentally trapping the mechanic at the back of the chest at the time of the accident assistant mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 • local local _ 03 industry sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march day no 18 weekday saturday weekofyear 11 weekend season summer is _ holiday no clean _ description during the activity of changing conveyor power belt terminals b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m engine that was inside from the generator chute was activated thereby trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the immediate work area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Country_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month 1 Day 18 Weekday Saturday WeekofYear 11 season Summer week_holiday No longer_description during current activity of removing conveyor belt b feeding the primary mill no other mechanic entered the discharge chute x x m to clean some material at which time the automatic arm x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time for the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Chemical Industry Sector Mining Gender Male Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description because during the activity of changing conveyor a belt b feeding the primary mill no the mechanic entered the discharge power chute B x x m to clean the material at which time only the attached automatic sampler X x m that was inside the chute was activated thus trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is _ holiday No clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visuals a truck that was parked with the lights and the engine ignited inside the nudge where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can then return it to his coop and at to meters visualizes the light of a lamp shining in the direction of the goble when he finds the detote lying on the side of the scoop and proceeds to give immediate notification to the supervisory of the shift control control center and emergency center'], 'Accident Level': 4}, {'Description': {'Description': 'When the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave. When he finds no one he decides to go and look for the driver at the top of cro'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male body type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday afternoon 10 season summer is _ holiday no clean _ only when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the pilot of the truck about leave and once he finds some one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his pad and at to meters visualizes the light as a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center first emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when exiting the scoop was heading from rpa to the last cutoff point of the cro south waiting to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside following the thrust where the scoop found accumulating an dismount the operator stops the scoop and gets off to tell the new driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find whoever it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable only when approaching he finds the now deceased lying on the side of the scoop and proceeds to give immediate death notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was torn from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights of the engine ignited inside the pickup where the scoop found accumulating dismount the operator stops the scoop and gets off quietly tell a driver of the truck to leave and when he finds no one he decides to go and looks for the driver at the top of cro south where he can not find it then calmly returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching camera finds the deceased lying on the side clutching her scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 peak month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a portable truck that was reportedly parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to slowly leave and when he finds no one he decides to go and look for the driver at the top of cro south dump where he can not find it then he returns to his scoop and shouts at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds out the deceased lying on the side of the scoop driver and proceeds to give immediate notice to the supervisory of the emergency shift control control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Utility and Mobile Equipment Year 2017 Month March Day Ended Weekday Wednesday Sep 10 season Summer is_holiday No particular_description when the scoop was heading from rpa to the head point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he spots no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop which at to meters visualizes the light of a lamp pointing in the direction of a gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice of the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Vehicles Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop car was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was nearby parked with the lights flashing and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he soon finds no one he decides to go below and look for the driver at the top of cro south where when he can not find it then he returns to his scoop and at to meters visualizes the light of a traffic lamp shining in the direction of the gable when slowly approaching he finds the deceased driver lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is _ holiday No clean _ description about pm in circumstances that sprayed concrete in the nv bp of the obb after completion of the launch of the first mixkret the assistant of alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that the access finder in the cockpit of the mixkret asks the operator of the carrier team mr danon to come down when the team started, he noticed that Mr. Danon was injured between the crew height of the left rear field and the hastial de la laboratory'], 'Accident Level': 4}, {'Description': {'Description': 'Shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of theMixkret mr jhony to move the mixKret so that access'}, 'Accident Level': 4}, {'Description': ['country country _ 01 festival year _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february day 20 week saturday weekofyear 7 season summer is _ holiday daily clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing her launch of the first mixkret commander assistant of the alpha mr albertico asks the commander of the mixkret mr jhony to move the mixkret so that access finding in the base of the mixkret while operator of the launcher module mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['european country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp station of the obb after finishing the launch of the first mixkret the assistant officer of the alpha mr albertico asks the operator of the mixkret mr jhony to direct move the mixkret so that access finding in the cockpit of the second mixkret the operator of the launcher team as mr danon asks him how to help come down when the team started he noticed already that mr danon injured was imprisoned between the front team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining company male employee type third party critical risk of year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ 9 approximately pm in circumstances that shotcrete was launched in the launch bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the launcher so that access finding in the cockpit of the mixkret the operator of the launcher alpha mr danon asks him to come down when the team started he noticed flight mr danon injured was imprisoned on the team height of fuselage front rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 tourism industry voluntary sector mining gender male resource employee type third party critical risk list others year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of launching the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher search team mr danon asks him to come down when the navigation team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim tire and saw the driver hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Place Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer Commercial_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb car finishing the installation of the first mixkret the assistant of the alpha mr mar asks first operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret while operator of the launcher team mr danon asks her to come down when the team started he noticed that mr de injured was imprisoned between the team height of the left rear rim and the hastial de la car'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Partner Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer Year is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in in the nv bp of the obb after finishing the launch of the first mixkret the assistant of of the launch alpha mr albertico asks the operator of the mixkret mr ted jhony to move the adjacent mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was still imprisoned between the team height of the left rear boot rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 2 Day of the Week Saturday Day of the Week Year 26 Season Winter is Holidays No clean description when accessing the level during the installation of hydraulic filling pipes with diameter during the assembly of a section m to m height related to the floor The master of the hydraulic filling accident and his partner suffer wear of the right hand between the top edge of the shovel lamp and the roof of the work causing the injury at the time of the accident The employee used his rubber gloves'], 'Accident Level': 4}, {'Description': {'Description': 'The accident occurred during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor. The employee used his rubber gloves at the time of the accident.'}, 'Accident Level': 4}, {'Description': ['country country _ 2003 local local _ 03 industry sector mining gender male employee type third party critical risk others year of month july 1 1 november saturday weekofyear 26 season winter is _ holiday no clean _ description in access of level during the installation activity performed hydraulic filling pipes of diameter when installing a surface m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the left hand between the upper edge of the scoop 1 and the roof of the work generating the injury at the time of the accident the partners used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining service gender male female employee type third party critical risk others year 2016 month july day 2 weekly weekday saturday weekofyear 26 season winter is _ snow holiday no clean _ out description time in access level of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the staff master man of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the potential injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 domestic sector mining gender male employee type third level critical risk others year 2016 month july day 2 weekday saturday weekofyear 26 season 2012 is _ 13 no clean _ description in access shaft level during the installation activity using hydraulic boring pipes of diameter when installing a section extended to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition involving the right hand between the upper edge of his scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male miner employee type third party critical risk others relevant year 2016 month july day 2 weekday saturday weekofyear 26 2nd season winter is _ holiday no clean _ description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a compressor section m to obtain a height factor of m with reference to the floor construction the master responsible of hydraulic filling accident and his partner suffers an attrition of the right hand between the outer upper edge of the scoop lamp and the roof of the work generating the injury at around the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Grade Mining Gender Male Employee 1 Third Party Critical Risk Others Year 2016 Month July Day 2 days Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic steel pipes of diameter when installing a section m to a height 6 m with reference below the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the knee During the work generating him injury at the time of the accident the employee used the rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access control of level during the installation of activity of hydraulic filling pipes of diameter when installing a drill section m to a height of m with the reference to the floor the work master of hydraulic filling accident and his partner suffers an attrition of the right hand side between the upper edge of both the scoop lamp and the roof of of the work generating the injury and at the time of the work accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is _ holiday No clean _ description when taking sprayed concrete for resane on Cruise nv at pm about the operator was located on the left side of the equipment and started the release of cubic meters at that time decided to be paralyzing the task for some minute because of a leak of water in the roof box that did not allow the adhesion of the sprayed concrete to the rock setting when restart the operator that was on the squotcrete launch which was moved to the right side of the equipment while the assistant and the operator mixed to see that there was no pumping went to verify what happened and when they returned that the operator is not so they can that he see down the chimney they had asked the job, it asked the emergency response brigade and the medical service were activated that verify the death of the collaborator the investigation accident begins.'], 'Accident Level': 4}, {'Description': {'Description': 'The accident happened when performing shotcrete casting for resane on cruise nv. The operator was placed on the left side of the equipment and started the release of cubic meters. The assistant and the operator mixkret to see that there was no pumping went to verify what happened. When they returned they realized that the operator was not so they assume that he had fallen down the chimney.'}, 'Accident Level': 4}, {'Description': ['country tour _ 01 season local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 season 1 day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion in the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping stopped to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and mobile radio service are activated who verify the death of the collaborator the accident came to'], 'Accident Level': 4}, {'Description': ['country country _ of 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description status when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed down on the left side of the equipment and started the release of three cubic meters at that time decided to completely paralyze the task for a few minutes later due also to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right of side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the fire operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and usually the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['mining country _ 01 local local _ 04 industry sector mining gender male employee type third occupational critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting and resane on cruise sunday at pm monday the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of cement in the roof covering that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of their chimney while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical brigade are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male body employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no worker clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed manually on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the correct shotcrete to start the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify knowing what happened and when they returned they realized that the operator was not crying so they assume that he had literally fallen down the chimney they left the job to ask for blood help immediately the emergency response brigade helicopters and the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Construction Type Third Party Critical Risk Fall Year 2017 Month May Day 10 3 Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing some casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters during that time decided to paralyze the task for a few minutes came to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and first operator mixkret to see that there was no pumping went to verify it happened and when they returned they realized that the operator was not so they assume that he had jumped down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death from an collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 History Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing his shotcrete casting for resane on set cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time she decided to paralyze to the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the next operator that was on to the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that both the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately when the immediately emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand', 'Accident Level': 4}, {'Description': ['Country Country Country Country Country Country Country Country Industry Industry Industry Mining Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 4 Weekday Saturday Weekday Weekend Year 22 Season Autumn is Holiday No clean description is pm about in the nv in the tecnomin winery Mr. Chagua Bodeguero was alone cutting wires no with a grinder previously he had removed the protective hood from the disc of inches in diameter and adjusted a disc of a cross cutter of about inches origin traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local county _ 04 industry sector type gender role student type third party critical risk others year 2016 month june day spring weekday saturday december 22 season autumn is _ holiday no clean _ description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a man previously he had removed the protection guard from the disk 19 inches in 1983 and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of first left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ month 04 industry sector mining gender male employee type third party critical risk others year 2016 spring month june day 4 weekday saturday weekofyear week 22 tourist season autumn is _ holiday no is clean _ description being pm approximately in the nv in the tecnomin winery winery mr chagua bodeguero was alone cutting wires no with him a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation tear of two guard fingers of the left pocket hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month june day 4 weekday saturday weekofyear 22 season autumn tuesday _ holiday no clean _ description being pm tuesday in the nv code the tecnomin mr mr chagua bodeguero sitting alone cutting wires no with a grinder previously he had removed the protection guard behind the disk of inches of diameter and damaged a disk of a diameter of 24 inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 denotes industry dependent sector mining gender male employee type third party employment critical risk others year 2016 month june day 4 weekday saturday weekofyear 22 season autumn is _ holiday no clean _ description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires... no with whom a grinder previously he could had removed from the protection guard from the disk of inches in diameter and specially adapted a disk of cutting a crosscutter of approximately inches originating traumatic amputation of two fingers of the left fore hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Age Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the darkness beneath the south winery mr black area was alone cutting wires no with a tool previously he had removed the protection guard in the disk of inches and diameter and adapted a disk containing a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Sex Male Employee Type Third Party Community Critical Risk Others Year October 2016 July Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn Week is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no fire with a grinder previously he had removed entirely the protection guard from the disk of inches in diameter and had adapted a disk of a crosscutter of approximately inches originating traumatic The amputation of two fingers of a the left hand'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Electricity Cut Year 2017 Month March Day 18 Weekday Saturday Day of the Week Year 11 Season Summer is Vacation No clean description during the activity of conveyor belt change b Feeding the primary mill no the mechanic penetrated into the emptying shaft x x m to clean the material at the time the automatic sampler x m was activated, which held the mechanic at chest level at the time of the accident, the mechanic was alone in the working area'], 'Accident Level': 4}, {'Description': {'Description': 'Mechanic was alone in the work area when accident occurred. Mechanic entered discharge chute to clean material. Automatic sampler x m that was inside the chute was activated trapping the mechanic.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining department male employee type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear 11 season summer is _ 04 no clean _ description during the activity of changing conveyor belt b feeding at primary mill no the mechanic entered the electrical system x x m to clean the material at which time the automatic sampler x o that was inside the chute was activated trapping no mechanic at the height of the chest at the moment of the accident no conductor was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type 0 third party ( remote ) critical to risk power lock year 2017 month march day 18 weekday saturday weekofyear 11 mating season summer is _ 16 holiday no clean _ description during the activity of changing our conveyor belt b feeding the union primary mill no the mechanic entered the discharge entry chute x x m to clean through the material at which time using the automatic sampler x m that he was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector certification operations male employee type third party ( remote ) critical risk power lock year 2017 month ‑ day 18 weekday saturday weekofyear 11 spring summer is _ holiday no clean _ 07 during mandatory activity of changing conveyor belt b feeding the primary mill no the farmer entered the oil chute x x m to clean the material during which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the landslide at the time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 active industry sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear thursday 11 holidays season summer is _ 17 holiday no clean _ description during the activity inspection of changing conveyor belt b feeding the primary garbage mill no the mechanic entered the water discharge chute x x m to clean the material at which moment time the automatic sampler x m that was inside the chute was activated trapping the mechanic at near the height of the chest at the time of the accident the mechanic was working alone in the work area'], 'Accident Level': 4}, {'Description': ['Country National_01 Local Local_03 Industry Personnel Type Gender Male Employee Type User Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing off chains b feeding the primary mill no the mechanic entered the discharge chute x x m which clean the material at which time the automatic sampler x m that was inside the chute was activated when the mechanic at the height of the chest at the window before the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['Country Status Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Group Type Third Party (Remote) Critical Condition Risk Power lock Year 2017 Month March July Day 18 Weekday Saturday 21 WeekofYear 11 season Summer and is_holiday No clean_description equipment during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean out the material etc at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the exact time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is _ holiday No clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visuals a truck that was parked with the lights and the engine ignited inside the nudge where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can then return it to his coop and at to meters visualizes the light of a lamp shining in the direction of the goble when he finds the detote lying on the side of the scoop and proceeds to give immediate notification to the supervisory of the shift control control center and emergency center'], 'Accident Level': 4}, {'Description': {'Description': 'When the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave. When he finds no one he decides to go and look for the driver at the top of cro'}, 'Accident Level': 4}, {'Description': ['country country _ 01 business local _ 01 industry sector mining gender male employee type third party with risk vehicles and mobile equipment year 2017 month march august 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of west cro south to be near it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the load to leave and when he finds no one he decides he go and look at the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters by the light of a lamp flashing in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country registration country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 february weekday wednesday weekofyear 10 season summer is _ holiday 1 no clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to start be unloaded it visualizes a truck that was parked with the warning lights and the engine ignited being inside the thrust point where the scoop found accumulating dismount the operator stops the scoop and gets off to come tell the driver of the truck to leave and when he finds no missing one he decides to go and look for the driver at the top of an cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 private sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that initially parked with the lights and large engine ignited inside the thrust where the scoop found safely dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when coal finds no one he decides to go and wait for the driver at the exit of cro south where miner can easily find it till he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday id no clean _ description when upon the scoop was heading from rpa to the cutoff departure point of the cro south to be unloaded it clearly visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop recently found accumulating dismount the operator stops for the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the fallen driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction north of the gable when approaching he suddenly finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency emergency center'], 'Accident Level': 4}, {'Description': ['Country Year_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Taking Risk Vehicles Maintenance Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked on the bucket and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top a cro south where he can not find it then he returns to his scoop and at to meters and the light of a lamp shining in the direction of the gable when approaching he finds the deceased person on the side of the mountain and proceeds to give immediate help to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Company Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Day Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets further off to tell the driver of the truck to leave and when he finds no one he decides to again go and look for the driver at the top of cro south end where he can hopefully not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining downward in the direction of the gable when approaching he finds the deceased driver lying naked on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is _ holiday No clean _ description about pm in circumstances that sprayed concrete in the nv bp of the obb after completion of the launch of the first mixkret the assistant of alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that the access finder in the cockpit of the mixkret asks the operator of the carrier team mr danon to come down when the team started, he noticed that Mr. Danon was injured between the crew height of the left rear field and the hastial de la laboratory'], 'Accident Level': 4}, {'Description': {'Description': 'Shootcrete was launched in the nv bp of the obb. The assistant of the alpha was imprisoned between the team height of the left rear rim and the hastial de la labor.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical event others year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was displayed in the nv program of the obb after from the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony she move the mixkret so that access opened in the cockpit of alpha leader the owner of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear wheel and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february day 20 weekday 22 saturday weekofyear 7 winter season summer is _ holiday no clean _ description 2016 approximately pm in no circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of and the first ever mixkret the assistant of of the alpha mr albertico asks the operator of and the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator operator of the launcher at team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year end month february day 20 weekday saturday weekofyear break season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was delayed in hq nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr williams asks the operator with the mixkret mr jhony to move the launcher so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him just come down when the team started he noticed that mr danon injured was imprisoned under the team height of the left rear rim and the hastial cab la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances considering that shotcrete was launched in the orbital nv bp of orbit the obb after finishing the launch of the rocket first mixkret the assistant of the alpha mr albertico alonso asks the operator of the mixkret mr jhony to move the mixkret so that access was finding in the cockpit of the next mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr dr danon injured was imprisoned between the team height of the left rear rim and the hastial de juan la rosa labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Low Risk Others Year 2016 Month February Day 20 March Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in range nv bp of the obb after finishing the launch of the rocket phase the assistant of the alpha mr albertico asks the operator of the shooter mr jhony to move her mixkret so user access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him the come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the cockpit de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Labor Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha driver mr albertico asks the operator of the mixkret mr jhony to move the mixkret so far that access finding in the cockpit of the mixkret the operator of in the launcher team mr danon asks him to suddenly come down when the team started he noticed that mr danon injured was imprisoned between what the rear team height of the left rear rim tire and the right hastial road de la labor'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 2 Day of the Week Saturday Day of the Week Year 26 Season Winter is Holidays No clean description when accessing the level during the installation of hydraulic filling pipes with diameter during the assembly of a section m to m height related to the floor The master of the hydraulic filling accident and his partner suffer wear of the right hand between the top edge of the shovel lamp and the roof of the work causing the injury at the time of the accident The employee used his rubber gloves'], 'Accident Level': 4}, {'Description': {'Description': 'The accident happened during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor. The employee used his rubber gloves at the time of the accident.'}, 'Accident Level': 4}, {'Description': ['of country _ nepal local local _ 03 industry is mining gender male employee type third party critical risk others year 2016 month july day 2 weekday and weekofyear 26 season winter is _ holiday no clean _ water in access capacity level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident was his partner suffers an attrition to the right hand between the upper edge or the scoop system and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country registration country _ 01 local local _ 03 industry sector mining gender male employee type third party critical risk others year is 2016 month july day 2 november weekday saturday weekofyear 26 season winter is _ may holiday no monday clean _ description in access of level during the installation activity of hydraulic filling pipes of given diameter when possible installing a section m to a height of m with reference to changing the floor the master of hydraulic chamber filling accident and his partner suffers an attrition of the right hand between the upper edge of the central scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 06 local _ 03 industry sector mining gender male employee type third party critical risk others year 2016 month july day 2 weekday 12 weekofyear summer season winter is _ holiday no clean _ description assumes access of level during the installation activity of hydraulic filling • minimum diameter when installing a section adjustable to a height of minimum with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp on the roof of the work generating the injury at the time since the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 03 industry sector mining gender male mining employee type third party critical liability risk others year 2016 month july day 2 weekday saturday weekofyear apr 26 season winter is _ holiday no clean _ description in obtaining access of level during the installation activity of hydraulic filling pipes of diameter when properly installing a section 1200 m to a height of 50 m with reference to covering the floor the master of hydraulic filling accident and his partner suffers an attrition of placing the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Job Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year Day Month July Day 2 Weekday Saturday WeekofYear 26 Month Winter March_holiday No clean_description in access of level during the cutting activity of hydraulic filling pipes of diameter when installing a section m to a height of width with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right ear between the upper edge of the scoop lamp under the roof of pump work generating the injury in the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year Feb 2016 Month July Day 2 Weekday Saturday None WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic vacuum filling pipes of diameter N when installing a section m c to a height of m c with reference to the floor the master operative of hydraulic filling accident and his partner suffers an attrition of the right mechanical hand between the flat upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber welding gloves'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is _ holiday No clean _ description when taking sprayed concrete for resane on Cruise nv at pm about the operator was located on the left side of the equipment and started the release of cubic meters at that time decided to be paralyzing the task for some minute because of a leak of water in the roof box that did not allow the adhesion of the sprayed concrete to the rock setting when restart the operator that was on the squotcrete launch which was moved to the right side of the equipment while the assistant and the operator mixed to see that there was no pumping went to verify what happened and when they returned that the operator is not so they can that he see down the chimney they had asked the job, it asked the emergency response brigade and the medical service were activated that verify the death of the collaborator the investigation accident begins.'], 'Accident Level': 4}, {'Description': {'Description': 'The operator was performing shotcrete casting for resane on cruise nv at pm approximately. The assistant and the operator mixkret to see that there was no pumping went to verify what happened. When they returned they realized that the operator was not so they assume that he had fallen down the chimney. The emergency response brigade and the medical service are activated who verify the death.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month holiday day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of steam in the roof box that did not allow the adhesion of the shotcrete to the rock break when restarting the shotcrete launch the operator that placed on this left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was any pumping went to verify what happened and when they returned they realized that the operator was not so they assume instead he had fallen down the chimney which left the job to reach for help immediately the emergency response brigade and the medical service are activated who verify the death of the person the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local 1st local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing to shotcrete casting for resane on cruise nv at pm approximately 4 the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box level that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that were was on the left side moved to the right side of the equipment while the assistant and later the operator mixkret to see that as there was no pumping went to verify what happened and when they returned they realized that the operator was not moving so they would assume that he had fallen down the chimney chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday sunday 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise shore at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the generators for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to normal rock setting then restarting the shotcrete launch the operator that was carrying the left side moved towards the right side of the plant while the assistant and the operator mixkret to see that it was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical coordinator are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of installing the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did indeed not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left rear side moved to the remote right side of the equipment compartment while the assistant and the cleaning operator mixkret to see that there was no pumping went to verify what happened and when they returned safely they also realized that driving the operator was not so they assume that he had fallen down the chimney before they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Year Local_04 Industry Sector Mining Equipment Male Employee Type Third Party Critical Risk Fall Festival 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv 30 pm approximately the operator was placed on the left top of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes because to a leak of water in the roof box that did not allow the adhesion of hardened shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the fore mixkret to see that there was no pumping went to verify what happened and when they returned they discovered that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service will activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Through Year 2017 Month May Day Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the installed operator was placed on the left side of where the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete cast to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when the they returned they realized that the operator was not so they assume that he is had fallen down the chimney they left the job ready to ask for help immediately the emergency response brigade unit and the medical service are activated who verify of the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand', 'Accident Level': 4}, {'Description': ['Country Country Country Country Country Country Country Country Industry Industry Industry Mining Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 4 Weekday Saturday Weekday Weekend Year 22 Season Autumn is Holiday No clean description is pm about in the nv in the tecnomin winery Mr. Chagua Bodeguero was alone cutting wires no with a grinder previously he had removed the protective hood from the disc of inches in diameter and adjusted a disc of a cross cutter of about inches origin traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': {'Description': 'Mining is a mining sector in which workers cut wires with a grinder. The incident took place in a winery in Buenos Aires, Argentina.'}, 'Accident Level': 4}, {'Description': ['country period _ 01 local area _ 00 industry sector mining gender male employee type third party critical risk others year 2016 month june day 4 weekday saturday weekofyear 22 season autumn is _ friday no visitors _ description being pm approximately 00pm the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection rod from the disk of inches in diameter and adapted the disk of a crosscutter of approximately inches originating traumatic amputation of two hands of the left dead'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others 2015 year 2016 month june 2017 day 4 weekday saturday weekofyear 22 season autumn is _ no holiday • no clean _ description being pm approximately in the rue nv street in near the tecnomin winery saloon mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the wheel disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two left fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry employee mining gender identified employee type third party critical persons others year 2016 month june day 4 weekday saturday weekofyear 22 season 15 is _ holiday no clean _ description being issued approximately in the nv in the tecnomin 2 mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed this color guard from the disk of inches february 2013 and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type 3 third party critical risk others year past 2016 birth month june 1 day 4 weekday activity saturday 1st weekofyear 22 season autumn is _ 01 holiday no clean _ description being pm approximately 15 in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter radial of approximately 27 inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Date Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Survival Year 2016 Month June Day 4 Weekday August WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately of the nv in the large winery mr h bodeguero was alone cutting wires no with a grinder previously he had used the oil guard from the disk of inches in diameter and adapted a disk of a crosscutter of 18 inches originating traumatic amputation of two fingers of the left eye'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Career Gender Male Employee Type Employee Third Party Critical Domain Risk Others Year 2016 2016 Month June 4 Day 4 Day Weekday Saturday WeekofYear 22 Summer season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk capable of a crosscutter of approximately inches due originating traumatic amputation of approximately two fingers of the left hand'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Electricity Cut Year 2017 Month March Day 18 Weekday Saturday Day of the Week Year 11 Season Summer is Vacation No clean description during the activity of conveyor belt change b Feeding the primary mill no the mechanic penetrated into the emptying shaft x x m to clean the material at the time the automatic sampler x m was activated, which held the mechanic at chest level at the time of the accident, the mechanic was alone in the working area'], 'Accident Level': 4}, {'Description': {'Description': 'Mechanic was alone in the work area when accident occurred. Mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry status mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear 11 season summer is _ holiday and clean _ description during the activity and changing conveyor belt of feeding the primary mill no the mechanic designed the discharge chute x x m to remove the material at any time the magnetic sampler x m that was inside the chute was activated trapping the mechanic at the location of the chest at the time of the accident the mechanic was working in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender x male employee type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday end saturday weekofyear 11 season summer is _ holiday no clean _ description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x g x m trying to clean the material at which time all the automatic sampler x m that equipment was inside the chute was activated trapping the mechanic operating at the height of the truck chest at the time of the accident the mechanic was sitting alone in the engine work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 primary sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march day september month saturday weekofyear 11 season summer is _ holiday no clean _ description during the activity of changing conveyor belt b feeding the primary mill machinery the mechanic was using drain chute x x m to clean the material at which time manually automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chimney at which time of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday 2nd saturday weekofyear 11 season summer is _ holiday no longer clean _ description during the activity of changing conveyor belt type b feeding on the primary mill no the mechanic entered entering the discharge using chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of entering the chest … at the time of the accident the mechanic physically was alone in the work hatch area'], 'Accident Level': 4}, {'Description': ['Country Location_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 Friday Summer is_holiday No clean_description during normal activity of changing conveyor belt b feeding the primary mill no the mechanic entered another discharge chute x v m to clean the mill at which time the automatic sampler z m that was inside discharge chute was activated trapping the mechanic at the height on the chest at the time of the accident the mechanic was alone in the work room'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 December Weekday Saturday WeekofYear 11 season Summer is_holiday Time No clean_description However during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time a the automatic sampler 0 x m that was inside the chute was activated therefore trapping the female mechanic at the height was of the chest at the time of suffering the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is _ holiday No clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visuals a truck that was parked with the lights and the engine ignited inside the nudge where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can then return it to his coop and at to meters visualizes the light of a lamp shining in the direction of the goble when he finds the detote lying on the side of the scoop and proceeds to give immediate notification to the supervisory of the shift control control center and emergency center'], 'Accident Level': 4}, {'Description': {'Description': 'When the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave. When he finds no one he decides to go and look for the driver at the top of cro'}, 'Accident Level': 4}, {'Description': ['in country _ 01 local local _ 01 industry sector mining gender male employee type first party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no work _ description when the scoop was heading from rpa airport at cutoff point of the cro north to be unloaded it visualizes a truck who was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and thinking he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns into his truck and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month 10 march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of the property cro south to be unloaded it also visualizes a truck that was parked with the lights and the engine getting ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the service truck to leave and when outside he finds no one he decides to go and look for him the driver at the top of cro south where he can not find he it then he returns to search his scoop and at to 70 meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector gender gender male employee type third party critical risk vehicles and mobile equipment index 2017 month march day 8 weekday wednesday tuesday 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa past the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of electric lamp shining in the direction of the gable when approaching he finds the item lying on the side of this scoop and proceeds to give immediate notice asking the supervisory of officer shift control operations and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season 2014 summer is _ holiday no hitter clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the unmarked truck to leave and listen when he finds spot no one he decides to go back and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light signal of a street lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of locating the shift control emergency center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday 17 WeekofYear Work season Summer is_holiday No clean_description when the crew was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that had parked with the lights in the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can still find it then he returns to his scoop passing at to meters street the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds on give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to reach the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and again look for the driver at the top of a cro south where he can and not immediately find it then he returns to his scoop and at to meters time visualizes the light of a light lamp shining in the direction of the gable when approaching where he easily finds the deceased lying on the side of the scoop and proceeds by to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is _ holiday No clean _ description about pm in circumstances that sprayed concrete in the nv bp of the obb after completion of the launch of the first mixkret the assistant of alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that the access finder in the cockpit of the mixkret asks the operator of the carrier team mr danon to come down when the team started, he noticed that Mr. Danon was injured between the crew height of the left rear field and the hastial de la laboratory'], 'Accident Level': 4}, {'Description': {'Description': 'Shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mix kret mr jhony to move the mixkrets so that access'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local day _ 04 industry sector mining gender male employee type with party critical risk others year 2016 month february day 20 may saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in november that shotcrete was launched with the nv bp of the time after finishing the launch of the first mixkret the assistant of board alpha mr albertico asks the operator of the mixkret mr jhony i move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the show started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial for la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk by others year 2016 month 1 february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was randomly launched in the nv bp of the obb line after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to further move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come for down when the team started he noticed that mr la danon injured was imprisoned between the team height of the left rear circular rim wheel and the head hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type mining party recruitment risk others year 2016 month february 2015 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ day approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the cockpit of the first mixkret the operator of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that while finding in the cockpit of the mixkret the operator of the launcher team 1st danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the original height of the left rear rim and the hastial de la sierra'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry private sector mining gender male employee type third party organization critical risk others 2015 year 2016 month february day 20 weekday saturday weekofyear 7 season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the flight nv bp of the obb after finishing the launch of the first mixkret the assistant of the team alpha boat mr albertico asks the operator of the mixkret or mr jhony to move past the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started launch he noticed however that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Major Employee Type Third Party Critical Position Others Year 2016 Month February Day 20 to Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that rover was launched in the nv bp of the mission after finishing the launch of the first mixkret when manager of the alpha mr albertico asks the operator of the mixkret mr jhony to move that mixkret so that access finding in the center of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed to mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Private Critical Company Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret where the assistant of the alpha mr v albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding everything in the cockpit portion of the mixkret was the operator of the launcher team mr danon asks him to come down when once the team lifts started he noticed that mr danon injured was imprisoned exactly between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month July Day 2 Day of the Week Saturday Day of the Week Year 26 Season Winter is Holidays No clean description when accessing the level during the installation of hydraulic filling pipes with diameter during the assembly of a section m to m height related to the floor The master of the hydraulic filling accident and his partner suffer wear of the right hand between the top edge of the shovel lamp and the roof of the work causing the injury at the time of the accident The employee used his rubber gloves'], 'Accident Level': 4}, {'Description': {'Description': 'The master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury. The employee used his rubber gloves.'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male mixed type third party labor risk others year 2016 month july season 2 weekday 22 weekofyear 26 season winter is _ holiday no clean _ description prohibited access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between top working edge of the scoop lamp and full roof of the work generating a spring at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male and employee type third party critical risk others year 2016 month july day 2 weekday saturday weekofyear december 26 season winter is _ holiday no clean _ description in access of level during the installation activity of drilled hydraulic filling pipes of great diameter when repeatedly installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and patient his male partner suffers an attrition of the right hand between the upper edge of all the scoop space lamp and the roof of the the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ services industry sector mining gender male employee type awards party critical risk others year 2016 month july day 2 weekday saturday weekofyear 26 season 2007 rain _ holiday no clean _ 2010 in access of level during the installation activity of hydraulic crane pipes of diameter when installing a field m to a height of m with reference to the floor the master of hydraulic drilling accident and his partner suffers an deformation of the right hand between the upper leg of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 • industry sector mining emergency gender male employee type third party critical risk others year 2016 opening month july day 2 weekday saturday weekofyear 26 season winter is _ holiday no clean _ description in maximum access of level during the installation proper activity of hydraulic filling pipes of diameter when installing correctly a hollow section m to a height of m with prior reference to the floor the master of hydraulic filling accident and his partner suffers an attrition tear of the right hand between the upper edge of the scoop lamp and the overhead roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Function Sector Male Gender Male Employee Type Third Party Critical Risk Others Year 26 Month July Day 2 March Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level under the installation activity of hydraulic fill pipes of diameter n of a section m x a thickness of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': ['Country Country_01 Government Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday 1 WeekofYear 26 season Winter is_holiday No clean_description in access part of level during the installation activity conditions of hydraulic filling involving pipes of diameter when installing a section m to a height of m, with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the the upper edge of the lift scoop fitting lamp and the roof step of the work generating the injury at the time of the accident the employee used his rubber gloves'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is _ holiday No clean _ description when taking sprayed concrete for resane on Cruise nv at pm about the operator was located on the left side of the equipment and started the release of cubic meters at that time decided to be paralyzing the task for some minute because of a leak of water in the roof box that did not allow the adhesion of the sprayed concrete to the rock setting when restart the operator that was on the squotcrete launch which was moved to the right side of the equipment while the assistant and the operator mixed to see that there was no pumping went to verify what happened and when they returned that the operator is not so they can that he see down the chimney they had asked the job, it asked the emergency response brigade and the medical service were activated that verify the death of the collaborator the investigation accident begins.'], 'Accident Level': 4}, {'Description': {'Description': 'The accident occurred while performing shotcrete casting for resane on cruise nv. The assistant and the operator mixkret to see that there was no pumping went to verify what happened. When they returned they realized that the operator was not so they assume that he had fallen down the chimney.'}, 'Accident Level': 4}, {'Description': ['country around _ 01 local local _ 2 industry sector 2nd gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday november 19 season autumn is _ holiday no clean _ description when performing shotcrete launch for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator went to see that there was no pumping went to verify what happened and if they returned they realized that the operator was not and they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify suspicious death of the collaborator the new investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow around the adhesion of the shotcrete to the rock setting when restarting the first shotcrete launch the operator that was on on the left side moved to the right side of the equipment set while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the pumping operator was not so upset they assume that he had likely fallen down the chimney they left for the job to ask for help immediately the emergency response brigade and the medical advice service are again activated who verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk fall 2009 2017 month may day 10 weekday wednesday weekofyear 19 season autumn is _ holiday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and requested the release of cubic meters at that time decided to paralyze the task for a few nights due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the exhaust box when restarting the shotcrete launch the operator that was on the other side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no one went to verify what happened and when they enter they realized that the operator could not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident cause begins'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining industry gender male employee type third party critical risk fall year 2017 month may day 10 weekday wednesday weekofyear 19 september season autumn is _ holiday sunday no clean _ description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the base equipment and started the release of cubic meters meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized further that the operator was not so they assume that he had fallen down the chimney they has left the job to ask for help immediately the emergency response brigade and the medical service unit are activated who should verify the death of accident the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May To 10 Weekday 15 WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator who placed on the left sides of the equipment and following the release of power meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow seamless adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator whom was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade & the medical service are activated will verify the death of the collaborator the accident investigation begins'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Medium Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 September Month May Day 10 Weekday Wednesday WeekofYear 19 season 1 Autumn is_holiday Friday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the lifting task for a few hot minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side front of the equipment while the assistant and the operator mixkret to see that there was no no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade brigade and the medical service are activated who verify the death of the collaborator & the accident investigation begins'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand', 'Accident Level': 4}, {'Description': ['Country Country Country Country Country Country Country Country Industry Industry Industry Mining Sex Male Employee Type Third Party Critical Risk Other Year 2016 Month June Day 4 Weekday Saturday Weekday Weekend Year 22 Season Autumn is Holiday No clean description is pm about in the nv in the tecnomin winery Mr. Chagua Bodeguero was alone cutting wires no with a grinder previously he had removed the protective hood from the disc of inches in diameter and adjusted a disc of a cross cutter of about inches origin traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': {'Description': 'Mining is one of the most dangerous industries in the world. In the mining industry it is common for workers to be exposed to high levels of risk. The risk of injury to workers can be high'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 other sector mining company male employee type third party critical risk others on 2016 month june day 2 weekday saturday weekofyear 22 season autumn ski _ holiday no clean _ description 1 pm 1 in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches as diameter and then a disk of a crosscutter for approximately inches originating traumatic amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country 02 country _ 01 local 08 local _ 04 industry sector mining gender class male employee type third party member critical risk others year 2016 month june day 4 summer weekday saturday weekofyear 22 season autumn is _ holiday no clean _ description being pm approximately in the nv in the tecnomin winery trailer mr chagua bodeguero was alone cutting wires no with a grinder but previously he had removed the protection guard from the disk of inches in diameter and probably adapted a disk image of a crosscutter of approximately inches originating traumatic amputation of two fingers reconstruction of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ occupation local local _ employment industry sector youth gender male employee 2009 third party critical year others year 2016 month june day 4 weekday saturday september 22 season autumn is _ holiday no clean _ description tuesday pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches lower diameter and adapted a tape of a crosscutter of approximately inches originating simultaneous amputation of two fingers of the left hand'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 mining industry sector mining gender male employee type third party critical risk others year 2016 month 06 june day 4 weekday saturday weekofyear 22 season autumn 3rd is _ holiday no clean _ description being pm approximately in the nv in the centro tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in quarter diameter and specially adapted a disk of impact a crosscutter of approximately inches originating traumatic amputation of outer two fingers of the upper left knee hand'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Service Male Employee Type Third Party Critical Risk Others Year 2 Month June Day 4 Weekday 1 WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the backyard in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he manually removed wire protection guard from the disk of inches in diameter and used a disk of a crosscutter of approximately inches originating traumatic amputation of a fingers for the affected hand'], 'Accident Level': 4}, {'Description': ['Country Sector Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Location Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua a bodeguero he was alone cutting wires no with a grinder previously he had removed the protection band guard from around the disk of inches in diameter and adapted a disk of a horizontal crosscutter width of approximately inches without originating traumatic amputation of two fingers of the upper left hand'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 03 Industry Sector Mining Gender Male Employee Type Third Party (Remote Control) Critical Risk Electricity Cut Year 2017 Month March Day 18 Weekday Saturday Day of the Week Year 11 Season Summer is Vacation No clean description during the activity of conveyor belt change b Feeding the primary mill no the mechanic penetrated into the emptying shaft x x m to clean the material at the time the automatic sampler x m was activated, which held the mechanic at chest level at the time of the accident, the mechanic was alone in the working area'], 'Accident Level': 4}, {'Description': {'Description': 'Mechanic was alone in the work area when accident occurred. Mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ area industry group mining gender male employee type third party ( remote ) critical risk power lock year 2017 month march month 18 weekday saturday weekofyear 11 season summer is _ 12 no clean _ description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x 4 m to clean the material at the time the automatic sampler x m that was cleaning the chute was activated trapping the mechanic at the height as the charge at the time of the accident the mechanic stood alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 rural industry sector mining gender the male employee labor type third party ( remote ) critical risk power lock year 2017 month march day 18 weekday saturday weekofyear summer 11 season holiday summer is _ holiday no clean _ description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge pipe chute x x m to go clean the material at which time the automatic sampler x m that was inside the chute was activated trapping released the mechanic at the height of breaking the chest at the time of the accident the shop mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type inspection party ( remote ) critical risk power lock year 10th month march day 18 weekday saturday weekofyear rainy season 2009 is _ holiday no clean _ description during the activity of changing conveyor belt b feeding the primary mill no the mechanic welding coal discharge chute x x m to clean load material at which time the discharge sampler x m that was inside the chute was activated trapping the mechanic at the height of passenger chest at the time of the accident the crew was alone in the work area'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 industry sector mining gender male employee type third party ( remote ) critical disposal risk power lock year 2017 month march day 18 weekday afternoon saturday weekofyear 11 late season summer is _ 04 holiday no clean _ description during the activity of changing trolley conveyor driver belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which half time the automatic sampler x m that was inside the chute factory was activated trapping the mechanic at the height of the chest at the correct time of the accident the mechanic was alone in monitoring the work area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear Work season Summer is_holiday to clean_description during the activity of changing conveyor belt motors feeding the primary mill no body mechanic entered the discharge chute x x ml to clean recycled material at which rate the pressure sampler x m that was inside the chute was activated when the mechanic at the height of the chest at the victim of the accident the mechanic was alone in the work area'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Employment Type Third World Party (Remote) Critical Risk Power lock Year 18 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season 18 Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the power primary mill no the mechanic entered the discharge chute to x x m to clean the material at which time A the automatic sampler set x c m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work pit area'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is _ holiday No clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visuals a truck that was parked with the lights and the engine ignited inside the nudge where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can then return it to his coop and at to meters visualizes the light of a lamp shining in the direction of the goble when he finds the detote lying on the side of the scoop and proceeds to give immediate notification to the supervisory of the shift control control center and emergency center'], 'Accident Level': 4}, {'Description': {'Description': 'When the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave. When he finds no one he decides to go and look for the driver at the top of cro'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector by gender male employee type third party critical risk vehicles and mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday year clean _ description when the scoop was heading from atlanta to the cutoff entrance of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside by thrust where the scoop found accumulating dismount the driver stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the end of cro south where he can not find it then he returns to his scoop and at to meters visualizes by light of a lamp moving in the direction of the gable when approaching he finds the deceased lying on either side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector income mining gender male employee vehicle type third party critical risk vehicles and generators mobile equipment year 2017 month march day 8 weekday wednesday weekofyear 10 season summer is _ holiday no results clean _ description when the scoop was heading from rpa to visit the cutoff point of the cro north south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he finally decides to go and does look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light flashing of a lamp shining in the northwest direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male employee type third party critical risk vehicles drilling mobile equipment year 2017 month march day 8 weekday 2 weekofyear 10 season summer is _ holiday saturday clean _ description when the scoop was heading from rpa to some cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the deputies found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck should leave and when he finds no one he decides to go and look for the shovel at the top of cro southwest where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the light of the gable when approaching he finds the deceased customer on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 01 industry sector mining gender male labor employee badge type third party critical risk vehicles and mobile equipment year ending 2017 month march day 8 weekday holiday wednesday weekofyear 10 season summer is _ holiday no clean _ description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the ditch thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and cautiously look for the driver at the top of cro south where he can not find it then he returns to bring his scoop and at to meters visualizes the flashing light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop lid and proceeds to give immediate notice to the supervisory departments of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Career Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March October 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and gas flare ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave only when he finds no one he decides to go and look for the grave at the top of cro south where he can not find it then he returns to his scoop loader at to meters visualizes the light of a lamp shining in the direction of the gable when indeed he finds the deceased person on the side of the vehicle and proceeds to give immediate notice to the supervisory of the shift control center and emergency center'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Maintenance Mobile Equipment Year 2017 Month March Day 8 Weekday / Wednesday WeekofYear 10 season November Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with on the lights and the engine ignited inside the thrust where the scoop found accumulating drivers dismount the operator stops at the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and lands at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the operator deceased lying on the side of the scoop and proceeds to the give immediate notice to the supervisory of the shift control center fire and emergency center'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': ['Country Country _ 01 Local _ 04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Other Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is _ holiday No clean _ description about pm in circumstances that sprayed concrete in the nv bp of the obb after completion of the launch of the first mixkret the assistant of alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that the access finder in the cockpit of the mixkret asks the operator of the carrier team mr danon to come down when the team started, he noticed that Mr. Danon was injured between the crew height of the left rear field and the hastial de la laboratory'], 'Accident Level': 4}, {'Description': {'Description': 'Shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of theMixkret mr jhony to move the Mixkret so that access finding in'}, 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender and employee a third party critical risk others year 2016 month february day 20 weekday saturday weekofyear 7 season summer weekend _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch for the first mixkret the assistant of the alpha driver albertico asks the commander of the mixkret mr jhony to move the mixkret so that access finding in a cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the firing started he noticed the mr danon injured was imprisoned between the team height of the front rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk and others year 2016 same month february day 20 weekday saturday weekofyear 7 season summer 2012 is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in april the nv bp of the obb after finishing the launch of the first mixkret in the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of launch the mixkret the operator assistant of the launcher team mr danon also asks him to then come down when the team started he noticed that mr danon injured was imprisoned between the team height of both the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 04 industry sector mining gender male employee type third party critical risk others year 2016 month february day 20 may saturday weekofyear 7 season summer winter _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of lieutenant alpha mr albertico asks the operator of the bureau mr jhony to move the mixkret so that access finding in the rear of the mixkret gun gunner of the launcher team mr danon asks him to come down when the team started he noticed that mr beaumont injured himself imprisoned between the team compartment of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['country country _ 01 local local _ 03 04 industry sector mining gender male employee type third party critical employment risk others year 2016 fiscal month february day october 20 weekday saturday weekofyear 7 spring season summer is _ holiday no clean _ description approximately pm in circumstances that shotcrete was launched in the nv 16 bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured previously was imprisoned between the team height of the left rear fork rim and forming the hastial de la luz labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Date Year 2016 Month February Day 20 Weekday Saturday Tuesday 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was captured in the nv bp of the obb after finishing the launch of the nuclear mixkret the technician of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding open the cockpit of the mixkret the operator of that launcher that mr danon asks him to come down when the area when he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': ['Country Country_01 Location Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Monday Summer is_holiday Days No clean_description approximately pm in circumstances that shotcrete grenade was launched while in the nv bp of the second obb after finishing the launch of the unit first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come standing down when the team high started he noticed that mr danon injured was imprisoned between the team height of the turret left rear rim and the hastial de la labor'], 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party (Remote) Critical Risk Power lock Year 2017 Month March Day 18 Weekday Saturday WeekofYear 11 season Summer is_holiday No clean_description during the activity of changing conveyor belt b feeding the primary mill no the mechanic entered the discharge chute x x m to clean the material at which time the automatic sampler x m that was inside the chute was activated trapping the mechanic at the height of the chest at the time of the accident the mechanic was alone in the work area', 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_01 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Vehicles and Mobile Equipment Year 2017 Month March Day 8 Weekday Wednesday WeekofYear 10 season Summer is_holiday No clean_description when the scoop was heading from rpa to the cutoff point of the cro south to be unloaded it visualizes a truck that was parked with the lights and the engine ignited inside the thrust where the scoop found accumulating dismount the operator stops the scoop and gets off to tell the driver of the truck to leave and when he finds no one he decides to go and look for the driver at the top of cro south where he can not find it then he returns to his scoop and at to meters visualizes the light of a lamp shining in the direction of the gable when approaching he finds the deceased lying on the side of the scoop and proceeds to give immediate notice to the supervisory of the shift control center and emergency center', 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month February Day 20 Weekday Saturday WeekofYear 7 season Summer is_holiday No clean_description approximately pm in circumstances that shotcrete was launched in the nv bp of the obb after finishing the launch of the first mixkret the assistant of the alpha mr albertico asks the operator of the mixkret mr jhony to move the mixkret so that access finding in the cockpit of the mixkret the operator of the launcher team mr danon asks him to come down when the team started he noticed that mr danon injured was imprisoned between the team height of the left rear rim and the hastial de la labor', 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_03 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month July Day 2 Weekday Saturday WeekofYear 26 season Winter is_holiday No clean_description in access of level during the installation activity of hydraulic filling pipes of diameter when installing a section m to a height of m with reference to the floor the master of hydraulic filling accident and his partner suffers an attrition of the right hand between the upper edge of the scoop lamp and the roof of the work generating the injury at the time of the accident the employee used his rubber gloves', 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Fall Year 2017 Month May Day 10 Weekday Wednesday WeekofYear 19 season Autumn is_holiday No clean_description when performing shotcrete casting for resane on cruise nv at pm approximately the operator was placed on the left side of the equipment and started the release of cubic meters at that time decided to paralyze the task for a few minutes due to a leak of water in the roof box that did not allow the adhesion of the shotcrete to the rock setting when restarting the shotcrete launch the operator that was on the left side moved to the right side of the equipment while the assistant and the operator mixkret to see that there was no pumping went to verify what happened and when they returned they realized that the operator was not so they assume that he had fallen down the chimney they left the job to ask for help immediately the emergency response brigade and the medical service are activated who verify the death of the collaborator the accident investigation begins', 'Accident Level': 4}, {'Description': 'Country Country_01 Local Local_04 Industry Sector Mining Gender Male Employee Type Third Party Critical Risk Others Year 2016 Month June Day 4 Weekday Saturday WeekofYear 22 season Autumn is_holiday No clean_description being pm approximately in the nv in the tecnomin winery mr chagua bodeguero was alone cutting wires no with a grinder previously he had removed the protection guard from the disk of inches in diameter and adapted a disk of a crosscutter of approximately inches originating traumatic amputation of two fingers of the left hand', 'Accident Level': 4}]

In [ ]:
file_path = "/content/sample_data/output_file1.pkl"


# Read the pickled object from the file
pickle_data = pd.read_pickle(file_path)

# Create a DataFrame from the list of dictionaries
augmented_minority_df = pd.DataFrame(pickle_data)
In [ ]:
augmented_minority_df['Accident Level'].value_counts()
Out[ ]:
2    250
3    249
1    248
4    243
Name: Accident Level, dtype: int64
In [ ]:
# Filter augmented_minority_df to include only rows where Accident Level is 'I'
filtered_data_df = train_df[train_df['Accident Level']==0]

# Drop the index of the original data DataFrame
filtered_data_df.reset_index(drop=True, inplace=True)

# Reset the index of the filtered augmented DataFrame
augmented_minority_df.reset_index(drop=True, inplace=True)

# Concatenate original data with filtered augmented data row-wise
stacked_df = pd.concat([filtered_data_df[['Description', 'Accident Level']], augmented_minority_df[['Description', 'Accident Level']]], ignore_index=True)

# Display the concatenated DataFrame
stacked_df.head(2)
Out[ ]:
Description Accident Level
0 Country Country_01 Local Local_03 Industry Sec... 0
1 Country Country_01 Local Local_04 Industry Sec... 0
In [ ]:
# Shuffle the dataset
stacked_df = stacked_df.sample(frac=1, random_state=42).reset_index(drop=True)
In [ ]:
stacked_df['Accident Level'].value_counts()
Out[ ]:
2    250
3    249
1    248
0    247
4    243
Name: Accident Level, dtype: int64
In [ ]:
stacked_df.tail(15)
Out[ ]:
Description Accident Level
1222 [country country _ 01 local local _ 03 industr... 3
1223 [country country _ 01 local local _ 03 industr... 1
1224 [country country _ 02 local local _ chapter 08... 3
1225 Country Country_03 Local Local_10 Industry Sec... 0
1226 Country Country_01 Local Local_03 Industry Sec... 3
1227 [country country _ 01 local local _ 04 industr... 4
1228 Country Country_01 Local Local_03 Industry Sec... 0
1229 {'Description': 'The worker made the cast of s... 1
1230 Country Country_02 Local Local_02 Industry Sec... 1
1231 Country Country_01 Local Local_03 Industry Sec... 0
1232 [relevant country _ 08 local local _ 04 indust... 4
1233 {'Description': 'Country Country_01 Local Loca... 4
1234 [Country Country _ 01 Local _ 03 Industry Sect... 4
1235 [Country Country_02 Local Local_07 Country Sec... 3
1236 [country country _ 01 local local _ 04 industr... 4
In [ ]:
# Correct rows that contain dictionaries
stacked_df['Description']=stacked_df['Description'].apply(lambda x: x if not isinstance(x, dict) else x['Description'])
In [ ]:
stacked_df.to_pickle('./stacked_df')
In [37]:
stacked_df = pd.read_pickle('./stacked_df')
In [38]:
stacked_df.tail(5)
Out[38]:
Description Accident Level
1232 [relevant country _ 08 local local _ 04 indust... 4
1233 Country Country_01 Local Local_04 Industry Sec... 4
1234 [Country Country _ 01 Local _ 03 Industry Sect... 4
1235 [Country Country_02 Local Local_07 Country Sec... 3
1236 [country country _ 01 local local _ 04 industr... 4
In [39]:
X_train=stacked_df['Description']
y_train=tf.keras.utils.to_categorical(stacked_df['Accident Level'])
In [40]:
X_train.shape, y_train.shape, X_test.shape, y_test.shape
Out[40]:
((1237,), (1237, 5), (84,), (84, 5))
In [42]:
desired_vocab_size = 10000 #Vocablury size
t= tf.keras.preprocessing.text.Tokenizer(num_words=desired_vocab_size)
t.fit_on_texts(X_train.tolist())

X_train = t.texts_to_sequences(X_train.tolist())
X_test = t.texts_to_sequences(X_test.tolist())

max_review_length=max(len(seq) for seq in X_train)
X_train = tf.keras.preprocessing.sequence.pad_sequences(X_train,
                                                        maxlen=max_review_length,
                                                        padding='pre',
                                                        truncating='post')
X_test = tf.keras.preprocessing.sequence.pad_sequences(X_test,
                                                       maxlen=max_review_length,
                                                       padding='pre',
                                                       truncating='post')


with open('glove_model.pkl', 'rb') as f:
    glove_model = pickle.load(f)

embedding_vector_length = glove_model.vector_size


with open('glove_embeeding_matrix.pkl', 'rb') as f:
    embedding_matrix = pickle.load(f)
In [ ]:
X_train.shape, X_test.shape, y_train.shape, y_test.shape
Out[ ]:
((1237, 215), (84, 215), (1237, 5), (84, 5))
In [ ]:
np.unique(np.argmax(y_test, axis=1), return_counts=True)
Out[ ]:
(array([0, 1, 2, 3, 4]), array([62,  8,  6,  6,  2]))

Lets try Bidirectional LSTM with text augmentation¶

In [ ]:
tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential([
  tf.keras.layers.Embedding(desired_vocab_size + 1, embedding_vector_length, input_length=max_review_length),  # Removed embedding_matrix argument (Optional: see previous explanation for pre-trained embeddings)
  tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(64, return_sequences=True)),
  tf.keras.layers.Dropout(0.2),
  tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(64)),
  tf.keras.layers.Dropout(0.2),
  tf.keras.layers.Dense(5, activation='softmax')  # Adjust for number of accident levels
])

model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

history = model.fit(X_train, y_train, epochs=25, batch_size=32, validation_data=(X_test, y_test), verbose=1)  # Include validation data
Epoch 1/25
39/39 [==============================] - 24s 317ms/step - loss: 1.4588 - accuracy: 0.3137 - val_loss: 0.9902 - val_accuracy: 0.7381
Epoch 2/25
39/39 [==============================] - 9s 220ms/step - loss: 1.2754 - accuracy: 0.3961 - val_loss: 0.9769 - val_accuracy: 0.7143
Epoch 3/25
39/39 [==============================] - 11s 283ms/step - loss: 1.1403 - accuracy: 0.4406 - val_loss: 1.2169 - val_accuracy: 0.6310
Epoch 4/25
39/39 [==============================] - 9s 237ms/step - loss: 0.9434 - accuracy: 0.5942 - val_loss: 1.2215 - val_accuracy: 0.6905
Epoch 5/25
39/39 [==============================] - 5s 123ms/step - loss: 0.5358 - accuracy: 0.7728 - val_loss: 1.4591 - val_accuracy: 0.6429
Epoch 6/25
39/39 [==============================] - 5s 127ms/step - loss: 0.2488 - accuracy: 0.9256 - val_loss: 1.3148 - val_accuracy: 0.7143
Epoch 7/25
39/39 [==============================] - 3s 83ms/step - loss: 0.0953 - accuracy: 0.9814 - val_loss: 1.5743 - val_accuracy: 0.6786
Epoch 8/25
39/39 [==============================] - 3s 72ms/step - loss: 0.0996 - accuracy: 0.9741 - val_loss: 1.6290 - val_accuracy: 0.7381
Epoch 9/25
39/39 [==============================] - 3s 89ms/step - loss: 0.0416 - accuracy: 0.9895 - val_loss: 1.6647 - val_accuracy: 0.6905
Epoch 10/25
39/39 [==============================] - 3s 89ms/step - loss: 0.0353 - accuracy: 0.9919 - val_loss: 1.8844 - val_accuracy: 0.6548
Epoch 11/25
39/39 [==============================] - 3s 66ms/step - loss: 0.0215 - accuracy: 0.9951 - val_loss: 1.7522 - val_accuracy: 0.7024
Epoch 12/25
39/39 [==============================] - 3s 68ms/step - loss: 0.0147 - accuracy: 0.9968 - val_loss: 1.8868 - val_accuracy: 0.7024
Epoch 13/25
39/39 [==============================] - 2s 54ms/step - loss: 0.0195 - accuracy: 0.9960 - val_loss: 1.8897 - val_accuracy: 0.7024
Epoch 14/25
39/39 [==============================] - 2s 59ms/step - loss: 0.0090 - accuracy: 0.9984 - val_loss: 1.9441 - val_accuracy: 0.7143
Epoch 15/25
39/39 [==============================] - 3s 70ms/step - loss: 0.0068 - accuracy: 0.9984 - val_loss: 1.9911 - val_accuracy: 0.7024
Epoch 16/25
39/39 [==============================] - 3s 65ms/step - loss: 0.0087 - accuracy: 0.9960 - val_loss: 2.0204 - val_accuracy: 0.7024
Epoch 17/25
39/39 [==============================] - 3s 65ms/step - loss: 0.0118 - accuracy: 0.9951 - val_loss: 2.0363 - val_accuracy: 0.7262
Epoch 18/25
39/39 [==============================] - 2s 59ms/step - loss: 0.0078 - accuracy: 0.9968 - val_loss: 2.0717 - val_accuracy: 0.7143
Epoch 19/25
39/39 [==============================] - 2s 43ms/step - loss: 0.0080 - accuracy: 0.9968 - val_loss: 2.1154 - val_accuracy: 0.7024
Epoch 20/25
39/39 [==============================] - 1s 38ms/step - loss: 0.0068 - accuracy: 0.9976 - val_loss: 2.1826 - val_accuracy: 0.7143
Epoch 21/25
39/39 [==============================] - 3s 71ms/step - loss: 0.0054 - accuracy: 0.9984 - val_loss: 2.2198 - val_accuracy: 0.7143
Epoch 22/25
39/39 [==============================] - 2s 46ms/step - loss: 0.0068 - accuracy: 0.9960 - val_loss: 2.3758 - val_accuracy: 0.7024
Epoch 23/25
39/39 [==============================] - 2s 63ms/step - loss: 0.0063 - accuracy: 0.9968 - val_loss: 2.2909 - val_accuracy: 0.7143
Epoch 24/25
39/39 [==============================] - 2s 40ms/step - loss: 0.0065 - accuracy: 0.9951 - val_loss: 2.3725 - val_accuracy: 0.6786
Epoch 25/25
39/39 [==============================] - 1s 36ms/step - loss: 0.0058 - accuracy: 0.9951 - val_loss: 2.3765 - val_accuracy: 0.6905
In [ ]:
result=function_model("Bi-directional_LSTM_64_Textaug",model, history, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM_64_Textaug
3/3 [==============================] - 1s 21ms/step
Train Accuracy score:  0.995149552822113
Test Accuracy score:  0.6904761791229248
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.77      0.87      0.82        62
           1       1.00      0.12      0.22         8
           2       0.14      0.17      0.15         6
           3       0.40      0.33      0.36         6
           4       0.00      0.00      0.00         2

    accuracy                           0.69        84
   macro avg       0.46      0.30      0.31        84
weighted avg       0.70      0.69      0.66        84

No description has been provided for this image

Lets try Bidirectional LSTM 128 with dense layers text augmentation¶

In [ ]:
#preparing model_bi_lstm

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model_bi_lstm = tf.keras.Sequential()

model_bi_lstm.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  #weights=[embedding_matrix], #Embeddings taken from pre-trained model_bi_lstm
                  #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model_bi_lstm.add(tf.keras.layers.Dropout(0.3))

model_bi_lstm.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(128), merge_mode='sum'))
#model_bi_lstm.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model_bi_lstm.add(tf.keras.layers.Dropout(0.3))


#model_bi_lstm.add(tf.keras.layers.Dense(256, activation='relu'))
#model_bi_lstm.add(tf.keras.layers.Dropout(0.3))

#model_bi_lstm.add(tf.keras.layers.Dense(128, activation='relu'))
#model_bi_lstm.add(tf.keras.layers.Dropout(0.5))
#model_bi_lstm.add(tf.keras.layers.BatchNormalization())

model_bi_lstm.add(tf.keras.layers.Dense(64, activation='relu'))
model_bi_lstm.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm.add(tf.keras.layers.BatchNormalization())

model_bi_lstm.add(tf.keras.layers.Dense(32, activation='relu'))
model_bi_lstm.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm.add(tf.keras.layers.BatchNormalization())

model_bi_lstm.add(tf.keras.layers.Dense(16, activation='relu'))
model_bi_lstm.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm.add(tf.keras.layers.BatchNormalization())

model_bi_lstm.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model_bi_lstm summary
model_bi_lstm.summary()


#Compile the model_bi_lstm
model_bi_lstm.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history_bi_lstm=model_bi_lstm.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=30,
            batch_size=16,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 128)               336896    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 128)               0         
                                                                 
 dense (Dense)               (None, 64)                8256      
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 dense_1 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 dense_2 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 dense_3 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2348045 (8.96 MB)
Trainable params: 2348045 (8.96 MB)
Non-trainable params: 0 (0.00 Byte)
_________________________________________________________________
Epoch 1/30
78/78 [==============================] - 27s 288ms/step - loss: 1.5685 - accuracy: 0.2611 - val_loss: 1.1750 - val_accuracy: 0.7381
Epoch 2/30
78/78 [==============================] - 12s 154ms/step - loss: 1.5060 - accuracy: 0.3137 - val_loss: 1.1566 - val_accuracy: 0.7262
Epoch 3/30
78/78 [==============================] - 7s 92ms/step - loss: 1.3922 - accuracy: 0.3597 - val_loss: 1.0258 - val_accuracy: 0.7024
Epoch 4/30
78/78 [==============================] - 6s 76ms/step - loss: 1.2956 - accuracy: 0.3678 - val_loss: 1.1804 - val_accuracy: 0.6429
Epoch 5/30
78/78 [==============================] - 4s 55ms/step - loss: 1.2135 - accuracy: 0.3985 - val_loss: 1.7628 - val_accuracy: 0.6071
Epoch 6/30
78/78 [==============================] - 4s 55ms/step - loss: 1.1773 - accuracy: 0.3985 - val_loss: 2.2052 - val_accuracy: 0.5476
Epoch 7/30
78/78 [==============================] - 4s 46ms/step - loss: 1.1748 - accuracy: 0.4099 - val_loss: 2.0712 - val_accuracy: 0.7024
Epoch 8/30
78/78 [==============================] - 3s 44ms/step - loss: 1.1508 - accuracy: 0.4196 - val_loss: 3.3080 - val_accuracy: 0.6310
Epoch 9/30
78/78 [==============================] - 3s 38ms/step - loss: 1.1406 - accuracy: 0.3977 - val_loss: 2.7714 - val_accuracy: 0.6071
Epoch 10/30
78/78 [==============================] - 4s 48ms/step - loss: 1.1245 - accuracy: 0.4349 - val_loss: 3.0878 - val_accuracy: 0.6071
Epoch 11/30
78/78 [==============================] - 4s 46ms/step - loss: 1.0579 - accuracy: 0.4818 - val_loss: 3.6619 - val_accuracy: 0.6429
Epoch 12/30
78/78 [==============================] - 2s 30ms/step - loss: 0.9380 - accuracy: 0.5505 - val_loss: 2.6382 - val_accuracy: 0.5119
Epoch 13/30
78/78 [==============================] - 2s 29ms/step - loss: 0.8320 - accuracy: 0.6071 - val_loss: 2.2326 - val_accuracy: 0.5119
Epoch 14/30
78/78 [==============================] - 2s 30ms/step - loss: 0.7214 - accuracy: 0.6734 - val_loss: 2.3469 - val_accuracy: 0.6190
Epoch 15/30
78/78 [==============================] - 3s 38ms/step - loss: 0.6123 - accuracy: 0.7251 - val_loss: 2.6430 - val_accuracy: 0.5952
Epoch 16/30
78/78 [==============================] - 2s 30ms/step - loss: 0.5060 - accuracy: 0.7947 - val_loss: 3.0832 - val_accuracy: 0.6071
Epoch 17/30
78/78 [==============================] - 2s 24ms/step - loss: 0.4555 - accuracy: 0.8262 - val_loss: 3.2803 - val_accuracy: 0.6429
Epoch 18/30
78/78 [==============================] - 2s 30ms/step - loss: 0.3616 - accuracy: 0.8658 - val_loss: 3.7755 - val_accuracy: 0.6548
Epoch 19/30
78/78 [==============================] - 2s 30ms/step - loss: 0.2826 - accuracy: 0.8860 - val_loss: 2.5079 - val_accuracy: 0.6190
Epoch 20/30
78/78 [==============================] - 2s 31ms/step - loss: 0.2436 - accuracy: 0.9078 - val_loss: 3.5019 - val_accuracy: 0.6310
Epoch 21/30
78/78 [==============================] - 3s 34ms/step - loss: 0.1974 - accuracy: 0.9305 - val_loss: 3.3606 - val_accuracy: 0.6429
Epoch 22/30
78/78 [==============================] - 2s 28ms/step - loss: 0.1722 - accuracy: 0.9491 - val_loss: 4.4858 - val_accuracy: 0.6429
Epoch 23/30
78/78 [==============================] - 2s 21ms/step - loss: 0.1400 - accuracy: 0.9563 - val_loss: 4.4849 - val_accuracy: 0.6905
Epoch 24/30
78/78 [==============================] - 2s 28ms/step - loss: 0.1422 - accuracy: 0.9547 - val_loss: 4.3974 - val_accuracy: 0.6667
Epoch 25/30
78/78 [==============================] - 2s 25ms/step - loss: 0.1065 - accuracy: 0.9685 - val_loss: 5.0568 - val_accuracy: 0.6429
Epoch 26/30
78/78 [==============================] - 4s 46ms/step - loss: 0.1235 - accuracy: 0.9612 - val_loss: 5.0512 - val_accuracy: 0.5595
Epoch 27/30
78/78 [==============================] - 2s 31ms/step - loss: 0.1316 - accuracy: 0.9620 - val_loss: 4.5882 - val_accuracy: 0.5952
Epoch 28/30
78/78 [==============================] - 2s 26ms/step - loss: 0.1029 - accuracy: 0.9677 - val_loss: 5.2005 - val_accuracy: 0.6190
Epoch 29/30
78/78 [==============================] - 2s 23ms/step - loss: 0.0804 - accuracy: 0.9725 - val_loss: 6.0839 - val_accuracy: 0.6429
Epoch 30/30
78/78 [==============================] - 2s 23ms/step - loss: 0.0945 - accuracy: 0.9766 - val_loss: 5.9955 - val_accuracy: 0.6429
In [ ]:
result=function_model("Bi-directional_LSTM_128_dense_Textaug",model_bi_lstm, history_bi_lstm, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM_128_dense_Textaug
3/3 [==============================] - 1s 12ms/step
Train Accuracy score:  0.9765561819076538
Test Accuracy score:  0.6428571343421936
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.75      0.84      0.79        62
           1       0.14      0.12      0.13         8
           2       0.00      0.00      0.00         6
           3       0.25      0.17      0.20         6
           4       0.00      0.00      0.00         2

    accuracy                           0.64        84
   macro avg       0.23      0.23      0.23        84
weighted avg       0.59      0.64      0.61        84

No description has been provided for this image

Lets try Bidirectional LSTM 256 with dense layers text augmentation¶

In [ ]:
#preparing model_bi_lstm256

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model_bi_lstm256 = tf.keras.Sequential()

model_bi_lstm256.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  #weights=[embedding_matrix], #Embeddings taken from pre-trained model_bi_lstm256
                  #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))

model_bi_lstm256.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(256)))
#model_bi_lstm256.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))


#model_bi_lstm256.add(tf.keras.layers.Dense(256, activation='relu'))
#model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))

#model_bi_lstm256.add(tf.keras.layers.Dense(128, activation='relu'))
#model_bi_lstm256.add(tf.keras.layers.Dropout(0.5))
#model_bi_lstm256.add(tf.keras.layers.BatchNormalization())

model_bi_lstm256.add(tf.keras.layers.Dense(64, activation='relu'))
model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm256.add(tf.keras.layers.BatchNormalization())

model_bi_lstm256.add(tf.keras.layers.Dense(32, activation='relu'))
model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm256.add(tf.keras.layers.BatchNormalization())

model_bi_lstm256.add(tf.keras.layers.Dense(16, activation='relu'))
model_bi_lstm256.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm256.add(tf.keras.layers.BatchNormalization())

model_bi_lstm256.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model_bi_lstm256 summary
model_bi_lstm256.summary()


#Compile the model_bi_lstm256
model_bi_lstm256.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])

history_bi_lstm_256=model_bi_lstm256.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=60,
            batch_size=32,
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 512)               935936    
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 512)               0         
                                                                 
 dense (Dense)               (None, 64)                32832     
                                                                 
 dropout_2 (Dropout)         (None, 64)                0         
                                                                 
 dense_1 (Dense)             (None, 32)                2080      
                                                                 
 dropout_3 (Dropout)         (None, 32)                0         
                                                                 
 dense_2 (Dense)             (None, 16)                528       
                                                                 
 dropout_4 (Dropout)         (None, 16)                0         
                                                                 
 dense_3 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2971661 (11.34 MB)
Trainable params: 2971661 (11.34 MB)
Non-trainable params: 0 (0.00 Byte)
_________________________________________________________________
Epoch 1/60
39/39 [==============================] - 18s 205ms/step - loss: 1.5763 - accuracy: 0.2700 - val_loss: 1.2668 - val_accuracy: 0.7381
Epoch 2/60
39/39 [==============================] - 4s 108ms/step - loss: 1.5881 - accuracy: 0.2611 - val_loss: 1.5741 - val_accuracy: 0.0714
Epoch 3/60
39/39 [==============================] - 4s 105ms/step - loss: 1.6201 - accuracy: 0.1892 - val_loss: 1.5999 - val_accuracy: 0.0714
Epoch 4/60
39/39 [==============================] - 4s 98ms/step - loss: 1.6129 - accuracy: 0.2061 - val_loss: 1.6113 - val_accuracy: 0.0714
Epoch 5/60
39/39 [==============================] - 3s 71ms/step - loss: 1.6108 - accuracy: 0.1876 - val_loss: 1.6018 - val_accuracy: 0.0595
Epoch 6/60
39/39 [==============================] - 2s 57ms/step - loss: 1.6129 - accuracy: 0.1916 - val_loss: 1.6005 - val_accuracy: 0.0952
Epoch 7/60
39/39 [==============================] - 3s 72ms/step - loss: 1.6107 - accuracy: 0.1900 - val_loss: 1.5991 - val_accuracy: 0.0714
Epoch 8/60
39/39 [==============================] - 2s 62ms/step - loss: 1.6096 - accuracy: 0.2110 - val_loss: 1.6055 - val_accuracy: 0.0714
Epoch 9/60
39/39 [==============================] - 3s 91ms/step - loss: 1.6099 - accuracy: 0.2094 - val_loss: 1.5785 - val_accuracy: 0.7381
Epoch 10/60
39/39 [==============================] - 2s 57ms/step - loss: 1.5713 - accuracy: 0.2894 - val_loss: 1.4015 - val_accuracy: 0.7381
Epoch 11/60
39/39 [==============================] - 2s 53ms/step - loss: 1.5710 - accuracy: 0.2886 - val_loss: 1.5748 - val_accuracy: 0.2738
Epoch 12/60
39/39 [==============================] - 2s 56ms/step - loss: 1.5977 - accuracy: 0.2247 - val_loss: 1.5916 - val_accuracy: 0.5119
Epoch 13/60
39/39 [==============================] - 2s 49ms/step - loss: 1.5011 - accuracy: 0.3137 - val_loss: 1.3114 - val_accuracy: 0.6786
Epoch 14/60
39/39 [==============================] - 2s 52ms/step - loss: 1.3955 - accuracy: 0.3500 - val_loss: 1.0151 - val_accuracy: 0.7143
Epoch 15/60
39/39 [==============================] - 2s 56ms/step - loss: 1.3258 - accuracy: 0.3864 - val_loss: 1.2102 - val_accuracy: 0.7024
Epoch 16/60
39/39 [==============================] - 2s 60ms/step - loss: 1.2594 - accuracy: 0.3897 - val_loss: 1.3234 - val_accuracy: 0.6310
Epoch 17/60
39/39 [==============================] - 2s 52ms/step - loss: 1.3099 - accuracy: 0.3775 - val_loss: 1.1718 - val_accuracy: 0.6548
Epoch 18/60
39/39 [==============================] - 2s 49ms/step - loss: 1.1920 - accuracy: 0.4188 - val_loss: 2.1930 - val_accuracy: 0.6429
Epoch 19/60
39/39 [==============================] - 2s 40ms/step - loss: 1.1232 - accuracy: 0.4559 - val_loss: 1.9926 - val_accuracy: 0.5357
Epoch 20/60
39/39 [==============================] - 1s 36ms/step - loss: 1.0392 - accuracy: 0.5125 - val_loss: 2.2005 - val_accuracy: 0.6667
Epoch 21/60
39/39 [==============================] - 2s 43ms/step - loss: 0.9047 - accuracy: 0.5699 - val_loss: 2.9053 - val_accuracy: 0.6190
Epoch 22/60
39/39 [==============================] - 2s 44ms/step - loss: 0.8601 - accuracy: 0.5926 - val_loss: 2.4119 - val_accuracy: 0.5357
Epoch 23/60
39/39 [==============================] - 2s 64ms/step - loss: 0.8133 - accuracy: 0.6128 - val_loss: 2.8478 - val_accuracy: 0.5595
Epoch 24/60
39/39 [==============================] - 1s 37ms/step - loss: 0.7771 - accuracy: 0.6435 - val_loss: 2.7146 - val_accuracy: 0.3929
Epoch 25/60
39/39 [==============================] - 1s 34ms/step - loss: 0.6954 - accuracy: 0.6572 - val_loss: 2.5071 - val_accuracy: 0.5476
Epoch 26/60
39/39 [==============================] - 1s 34ms/step - loss: 0.6402 - accuracy: 0.7162 - val_loss: 3.0851 - val_accuracy: 0.6071
Epoch 27/60
39/39 [==============================] - 2s 42ms/step - loss: 0.5739 - accuracy: 0.7001 - val_loss: 3.1923 - val_accuracy: 0.5357
Epoch 28/60
39/39 [==============================] - 2s 48ms/step - loss: 0.5612 - accuracy: 0.7251 - val_loss: 3.3473 - val_accuracy: 0.5476
Epoch 29/60
39/39 [==============================] - 2s 37ms/step - loss: 0.5206 - accuracy: 0.7502 - val_loss: 3.7440 - val_accuracy: 0.5000
Epoch 30/60
39/39 [==============================] - 2s 58ms/step - loss: 0.4702 - accuracy: 0.7591 - val_loss: 4.0163 - val_accuracy: 0.5833
Epoch 31/60
39/39 [==============================] - 2s 49ms/step - loss: 0.4620 - accuracy: 0.7559 - val_loss: 4.2238 - val_accuracy: 0.5595
Epoch 32/60
39/39 [==============================] - 2s 42ms/step - loss: 0.4377 - accuracy: 0.7664 - val_loss: 4.2896 - val_accuracy: 0.5595
Epoch 33/60
39/39 [==============================] - 1s 38ms/step - loss: 0.4214 - accuracy: 0.7761 - val_loss: 4.8398 - val_accuracy: 0.5476
Epoch 34/60
39/39 [==============================] - 2s 51ms/step - loss: 0.4039 - accuracy: 0.7882 - val_loss: 5.0761 - val_accuracy: 0.5238
Epoch 35/60
39/39 [==============================] - 2s 62ms/step - loss: 0.4126 - accuracy: 0.7922 - val_loss: 4.9023 - val_accuracy: 0.5833
Epoch 36/60
39/39 [==============================] - 2s 42ms/step - loss: 0.3666 - accuracy: 0.8383 - val_loss: 5.1006 - val_accuracy: 0.5714
Epoch 37/60
39/39 [==============================] - 2s 52ms/step - loss: 0.3538 - accuracy: 0.8593 - val_loss: 5.3959 - val_accuracy: 0.4286
Epoch 38/60
39/39 [==============================] - 3s 78ms/step - loss: 0.3318 - accuracy: 0.8650 - val_loss: 4.7348 - val_accuracy: 0.4167
Epoch 39/60
39/39 [==============================] - 2s 58ms/step - loss: 0.3131 - accuracy: 0.8836 - val_loss: 4.6517 - val_accuracy: 0.5714
Epoch 40/60
39/39 [==============================] - 1s 34ms/step - loss: 0.2826 - accuracy: 0.8917 - val_loss: 5.2581 - val_accuracy: 0.4643
Epoch 41/60
39/39 [==============================] - 2s 45ms/step - loss: 0.2263 - accuracy: 0.9111 - val_loss: 6.2710 - val_accuracy: 0.4286
Epoch 42/60
39/39 [==============================] - 2s 44ms/step - loss: 0.1945 - accuracy: 0.9313 - val_loss: 7.6250 - val_accuracy: 0.4286
Epoch 43/60
39/39 [==============================] - 1s 36ms/step - loss: 0.2159 - accuracy: 0.9313 - val_loss: 6.5955 - val_accuracy: 0.5833
Epoch 44/60
39/39 [==============================] - 1s 36ms/step - loss: 0.1814 - accuracy: 0.9402 - val_loss: 7.3319 - val_accuracy: 0.5000
Epoch 45/60
39/39 [==============================] - 1s 32ms/step - loss: 0.1825 - accuracy: 0.9361 - val_loss: 7.1534 - val_accuracy: 0.5238
Epoch 46/60
39/39 [==============================] - 1s 36ms/step - loss: 0.1774 - accuracy: 0.9394 - val_loss: 7.7382 - val_accuracy: 0.4881
Epoch 47/60
39/39 [==============================] - 1s 37ms/step - loss: 0.1363 - accuracy: 0.9507 - val_loss: 8.6535 - val_accuracy: 0.4643
Epoch 48/60
39/39 [==============================] - 1s 32ms/step - loss: 0.1633 - accuracy: 0.9483 - val_loss: 8.3563 - val_accuracy: 0.5000
Epoch 49/60
39/39 [==============================] - 1s 34ms/step - loss: 0.1734 - accuracy: 0.9410 - val_loss: 7.7025 - val_accuracy: 0.4881
Epoch 50/60
39/39 [==============================] - 1s 35ms/step - loss: 0.1338 - accuracy: 0.9572 - val_loss: 8.3045 - val_accuracy: 0.5952
Epoch 51/60
39/39 [==============================] - 1s 35ms/step - loss: 0.1966 - accuracy: 0.9483 - val_loss: 5.7510 - val_accuracy: 0.5476
Epoch 52/60
39/39 [==============================] - 1s 35ms/step - loss: 0.1360 - accuracy: 0.9539 - val_loss: 6.7246 - val_accuracy: 0.5476
Epoch 53/60
39/39 [==============================] - 1s 30ms/step - loss: 0.1053 - accuracy: 0.9628 - val_loss: 7.6703 - val_accuracy: 0.4762
Epoch 54/60
39/39 [==============================] - 2s 39ms/step - loss: 0.1068 - accuracy: 0.9669 - val_loss: 7.4416 - val_accuracy: 0.5476
Epoch 55/60
39/39 [==============================] - 2s 40ms/step - loss: 0.1055 - accuracy: 0.9628 - val_loss: 7.2563 - val_accuracy: 0.5595
Epoch 56/60
39/39 [==============================] - 1s 33ms/step - loss: 0.0915 - accuracy: 0.9693 - val_loss: 8.1752 - val_accuracy: 0.5714
Epoch 57/60
39/39 [==============================] - 1s 33ms/step - loss: 0.1191 - accuracy: 0.9612 - val_loss: 7.9670 - val_accuracy: 0.5476
Epoch 58/60
39/39 [==============================] - 1s 34ms/step - loss: 0.0965 - accuracy: 0.9717 - val_loss: 8.7895 - val_accuracy: 0.5595
Epoch 59/60
39/39 [==============================] - 1s 31ms/step - loss: 0.0780 - accuracy: 0.9725 - val_loss: 8.9745 - val_accuracy: 0.5595
Epoch 60/60
39/39 [==============================] - 1s 33ms/step - loss: 0.0880 - accuracy: 0.9741 - val_loss: 9.3627 - val_accuracy: 0.5357
In [ ]:
result=function_model("Bi-directional_LSTM_256_Textaug",model_bi_lstm256, history_bi_lstm_256, X_train,y_train,X_test,y_test)
lstm_model_summary=lstm_model_summary.append(result)
lstm_model_summary.reset_index(drop=True, inplace=True)
Model:  Bi-directional_LSTM_256_Textaug
3/3 [==============================] - 1s 22ms/step
Train Accuracy score:  0.9741309881210327
Test Accuracy score:  0.5357142686843872
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.68      0.71        62
           1       0.00      0.00      0.00         8
           2       0.20      0.17      0.18         6
           3       0.18      0.33      0.24         6
           4       0.00      0.00      0.00         2

    accuracy                           0.54        84
   macro avg       0.22      0.24      0.22        84
weighted avg       0.57      0.54      0.55        84

No description has been provided for this image
In [ ]:
lstm_model_summary
Out[ ]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 LSTM_128 0.93 0.58 0.57 0.58 0.57
1 LSTM_128 0.99 0.60 0.57 0.60 0.58
2 LSTM_256 1.00 0.63 0.55 0.63 0.59
3 LSTM_128_droupout 0.98 0.58 0.53 0.58 0.56
4 LSTM_256_droupout 0.99 0.55 0.52 0.55 0.53
5 LSTM_256_droupout_dense 0.82 0.51 0.55 0.51 0.53
6 LSTM_256_droupout_dense_dropout 0.81 0.68 0.56 0.68 0.61
7 LSTM_256_droupout_dense_dropout_BN 0.74 0.74 0.54 0.74 0.63
8 stackedLSTM 0.74 0.74 0.54 0.74 0.63
9 Bi-directional_LSTM 0.74 0.74 0.54 0.74 0.63
10 Bi-directional_LSTM_early_stop_reducedLR 0.74 0.74 0.54 0.74 0.63
11 Bi-directional_LSTM_ea_reducedLR_no_embeeding_... 0.74 0.74 0.54 0.74 0.63
12 SMOTE_ANN_5_Layers_BN_dropout 0.42 0.45 0.54 0.45 0.49
13 Smote_Bi-directional_LSTM_early_stop_reducedLR 0.21 0.02 0.00 0.02 0.00
14 Bi-directional_LSTM_64_Textaug 1.00 0.69 0.70 0.69 0.66
15 Bi-directional_LSTM_128_dense_Textaug 0.98 0.64 0.59 0.64 0.61
16 Bi-directional_LSTM_256_Textaug 0.97 0.54 0.57 0.54 0.55
In [68]:
from tensorflow.keras.callbacks import ModelCheckpoint
In [73]:
#preparing model_bi_lstm32

tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model_bi_lstm32 = tf.keras.Sequential()

model_bi_lstm32.add(tf.keras.layers.Embedding(desired_vocab_size + 1, #Vocablury size
                  embedding_vector_length, #Embedding size
                  #weights=[embedding_matrix], #Embeddings taken from pre-trained model_bi_lstm32
                  #trainable=False, #As embeddings are already available, we will not train this layer. It will act as lookup layer.
                  input_length=max_review_length) #Number of words in each review
      )

model_bi_lstm32.add(tf.keras.layers.Dropout(0.4))

model_bi_lstm32.add(tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(32)))
#model_bi_lstm32.add(tf.keras.layers.LSTM(256, return_sequences=True)) #RNN State - size of cell state and hidden state
model_bi_lstm32.add(tf.keras.layers.Dropout(0.4))


#model_bi_lstm32.add(tf.keras.layers.Dense(256, activation='relu'))
#model_bi_lstm32.add(tf.keras.layers.Dropout(0.3))

#model_bi_lstm32.add(tf.keras.layers.Dense(128, activation='relu'))
#model_bi_lstm32.add(tf.keras.layers.Dropout(0.5))
#model_bi_lstm32.add(tf.keras.layers.BatchNormalization())

#model_bi_lstm32.add(tf.keras.layers.Dense(64, activation='relu'))
#model_bi_lstm32.add(tf.keras.layers.Dropout(0.3))
#model_bi_lstm32.add(tf.keras.layers.BatchNormalization())

model_bi_lstm32.add(tf.keras.layers.Dense(32, activation='relu'))
model_bi_lstm32.add(tf.keras.layers.Dropout(0.4))
model_bi_lstm32.add(tf.keras.layers.BatchNormalization())

model_bi_lstm32.add(tf.keras.layers.Dense(16, activation='relu'))
model_bi_lstm32.add(tf.keras.layers.Dropout(0.4))
model_bi_lstm32.add(tf.keras.layers.BatchNormalization())

model_bi_lstm32.add(tf.keras.layers.Dense(5, activation='softmax')) #output


#model_bi_lstm32 summary
model_bi_lstm32.summary()


#Compile the model_bi_lstm32
model_bi_lstm32.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])


# Define early stopping callback
early_stopping = EarlyStopping(monitor='val_loss', patience=5, restore_best_weights=True)

# Define model checkpoint callback to save the best model weights
checkpoint = ModelCheckpoint(filepath='model_bi_lstm32_best_weights.h5',
                             monitor='val_accuracy',
                             save_best_only=True,
                             save_weights_only=True,
                             mode='max',
                             verbose=1)


history_bi_lstm32=model_bi_lstm32.fit(X_train,y_train, validation_data=(X_test,y_test),
            epochs=25,
            batch_size=16,
           # callbacks=[early_stopping, checkpoint],
            verbose=1)
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 embedding (Embedding)       (None, 215, 200)          2000200   
                                                                 
 dropout (Dropout)           (None, 215, 200)          0         
                                                                 
 bidirectional (Bidirection  (None, 64)                59648     
 al)                                                             
                                                                 
 dropout_1 (Dropout)         (None, 64)                0         
                                                                 
 dense (Dense)               (None, 32)                2080      
                                                                 
 dropout_2 (Dropout)         (None, 32)                0         
                                                                 
 batch_normalization (Batch  (None, 32)                128       
 Normalization)                                                  
                                                                 
 dense_1 (Dense)             (None, 16)                528       
                                                                 
 dropout_3 (Dropout)         (None, 16)                0         
                                                                 
 batch_normalization_1 (Bat  (None, 16)                64        
 chNormalization)                                                
                                                                 
 dense_2 (Dense)             (None, 5)                 85        
                                                                 
=================================================================
Total params: 2062733 (7.87 MB)
Trainable params: 2062637 (7.87 MB)
Non-trainable params: 96 (384.00 Byte)
_________________________________________________________________
Epoch 1/25
78/78 [==============================] - 23s 172ms/step - loss: 1.9776 - accuracy: 0.2280 - val_loss: 1.3822 - val_accuracy: 0.7381
Epoch 2/25
78/78 [==============================] - 8s 101ms/step - loss: 1.7901 - accuracy: 0.2894 - val_loss: 1.1638 - val_accuracy: 0.7381
Epoch 3/25
78/78 [==============================] - 5s 68ms/step - loss: 1.7025 - accuracy: 0.2862 - val_loss: 1.1144 - val_accuracy: 0.7381
Epoch 4/25
78/78 [==============================] - 5s 66ms/step - loss: 1.5842 - accuracy: 0.3217 - val_loss: 1.0487 - val_accuracy: 0.7381
Epoch 5/25
78/78 [==============================] - 3s 45ms/step - loss: 1.5039 - accuracy: 0.3452 - val_loss: 1.0133 - val_accuracy: 0.7143
Epoch 6/25
78/78 [==============================] - 3s 41ms/step - loss: 1.4727 - accuracy: 0.3589 - val_loss: 1.0385 - val_accuracy: 0.7262
Epoch 7/25
78/78 [==============================] - 3s 37ms/step - loss: 1.4034 - accuracy: 0.3808 - val_loss: 1.0094 - val_accuracy: 0.7143
Epoch 8/25
78/78 [==============================] - 4s 46ms/step - loss: 1.3739 - accuracy: 0.3719 - val_loss: 1.1186 - val_accuracy: 0.6429
Epoch 9/25
78/78 [==============================] - 3s 34ms/step - loss: 1.3467 - accuracy: 0.3848 - val_loss: 1.0498 - val_accuracy: 0.7143
Epoch 10/25
78/78 [==============================] - 3s 35ms/step - loss: 1.3114 - accuracy: 0.3848 - val_loss: 1.0565 - val_accuracy: 0.6548
Epoch 11/25
78/78 [==============================] - 3s 34ms/step - loss: 1.2942 - accuracy: 0.3727 - val_loss: 1.1727 - val_accuracy: 0.7262
Epoch 12/25
78/78 [==============================] - 3s 36ms/step - loss: 1.3794 - accuracy: 0.3638 - val_loss: 1.2255 - val_accuracy: 0.6310
Epoch 13/25
78/78 [==============================] - 2s 31ms/step - loss: 1.2593 - accuracy: 0.4074 - val_loss: 1.3039 - val_accuracy: 0.6429
Epoch 14/25
78/78 [==============================] - 2s 26ms/step - loss: 1.2312 - accuracy: 0.4123 - val_loss: 1.3456 - val_accuracy: 0.6071
Epoch 15/25
78/78 [==============================] - 2s 26ms/step - loss: 1.2142 - accuracy: 0.4212 - val_loss: 1.3966 - val_accuracy: 0.6071
Epoch 16/25
78/78 [==============================] - 2s 24ms/step - loss: 1.1910 - accuracy: 0.4285 - val_loss: 1.2855 - val_accuracy: 0.6310
Epoch 17/25
78/78 [==============================] - 2s 21ms/step - loss: 1.1591 - accuracy: 0.4640 - val_loss: 1.3074 - val_accuracy: 0.6667
Epoch 18/25
78/78 [==============================] - 3s 33ms/step - loss: 1.1415 - accuracy: 0.4770 - val_loss: 1.4509 - val_accuracy: 0.5833
Epoch 19/25
78/78 [==============================] - 3s 35ms/step - loss: 1.0535 - accuracy: 0.5376 - val_loss: 1.3263 - val_accuracy: 0.6310
Epoch 20/25
78/78 [==============================] - 2s 28ms/step - loss: 1.0082 - accuracy: 0.5691 - val_loss: 1.5079 - val_accuracy: 0.6071
Epoch 21/25
78/78 [==============================] - 2s 22ms/step - loss: 0.9472 - accuracy: 0.6233 - val_loss: 1.5813 - val_accuracy: 0.6310
Epoch 22/25
78/78 [==============================] - 2s 22ms/step - loss: 0.8998 - accuracy: 0.6548 - val_loss: 1.6572 - val_accuracy: 0.6190
Epoch 23/25
78/78 [==============================] - 2s 20ms/step - loss: 0.9050 - accuracy: 0.6289 - val_loss: 1.6007 - val_accuracy: 0.7024
Epoch 24/25
78/78 [==============================] - 2s 27ms/step - loss: 0.7847 - accuracy: 0.6936 - val_loss: 1.6253 - val_accuracy: 0.6667
Epoch 25/25
78/78 [==============================] - 3s 35ms/step - loss: 0.7324 - accuracy: 0.7219 - val_loss: 1.6074 - val_accuracy: 0.6667
In [74]:
function_model("Bi-directional_LSTM_32_no_embeeding_weight",model_bi_lstm32, history_bi_lstm32,X_train,y_train,X_test,y_test)
Model:  Bi-directional_LSTM_32_no_embeeding_weight
WARNING:tensorflow:5 out of the last 13 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7c6248cab2e0> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for  more details.
3/3 [==============================] - 1s 12ms/step
Train Accuracy score:  0.7219078540802002
Test Accuracy score:  0.6666666865348816
No description has been provided for this image
Classification report
              precision    recall  f1-score   support

           0       0.74      0.89      0.81        62
           1       0.00      0.00      0.00         8
           2       0.17      0.17      0.17         6
           3       0.00      0.00      0.00         6
           4       0.00      0.00      0.00         2

    accuracy                           0.67        84
   macro avg       0.18      0.21      0.20        84
weighted avg       0.56      0.67      0.61        84

No description has been provided for this image
Out[74]:
Model Train Accuracy Test Accuracy Precision recall f1 score
0 Bi-directional_LSTM_32_no_embeeding_weight 0.72 0.67 0.56 0.67 0.61
In [79]:
tf.keras.backend.clear_session()
tf.random.set_seed(42)
np.random.seed(42)

model = tf.keras.Sequential([
  tf.keras.layers.Embedding(desired_vocab_size + 1, embedding_vector_length, input_length=max_review_length),  # Removed embedding_matrix argument (Optional: see previous explanation for pre-trained embeddings)
  tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(64, return_sequences=True)),
  tf.keras.layers.Dropout(0.3),
  tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(64)),
  tf.keras.layers.Dropout(0.3),
  tf.keras.layers.Dense(32, activation='relu'),  # Adjust for number of accident levels
  tf.keras.layers.Dropout(0.3),
  tf.keras.layers.Dense(16, activation='relu'),  # Adjust for number of accident levels
  tf.keras.layers.Dropout(0.3),
  tf.keras.layers.Dense(5, activation='softmax')  # Adjust for number of accident levels
])

model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

history = model.fit(X_train, y_train, epochs=30, batch_size=16, validation_data=(X_test, y_test), verbose=1)  # Include validation data
Epoch 1/30
78/78 [==============================] - 19s 144ms/step - loss: 1.5371 - accuracy: 0.2975 - val_loss: 1.3383 - val_accuracy: 0.7262
Epoch 2/30
78/78 [==============================] - 8s 96ms/step - loss: 1.4057 - accuracy: 0.3403 - val_loss: 1.0534 - val_accuracy: 0.7262
Epoch 3/30
78/78 [==============================] - 7s 94ms/step - loss: 1.2823 - accuracy: 0.3783 - val_loss: 1.2967 - val_accuracy: 0.6786
Epoch 4/30
78/78 [==============================] - 5s 64ms/step - loss: 1.2354 - accuracy: 0.3654 - val_loss: 1.5681 - val_accuracy: 0.6905
Epoch 5/30
78/78 [==============================] - 5s 61ms/step - loss: 1.1808 - accuracy: 0.4018 - val_loss: 2.3003 - val_accuracy: 0.6310
Epoch 6/30
78/78 [==============================] - 5s 64ms/step - loss: 1.1305 - accuracy: 0.4422 - val_loss: 3.0434 - val_accuracy: 0.7143
Epoch 7/30
78/78 [==============================] - 4s 46ms/step - loss: 0.9946 - accuracy: 0.5271 - val_loss: 2.1801 - val_accuracy: 0.6905
Epoch 8/30
78/78 [==============================] - 4s 48ms/step - loss: 0.8860 - accuracy: 0.5821 - val_loss: 2.2024 - val_accuracy: 0.5952
Epoch 9/30
78/78 [==============================] - 5s 60ms/step - loss: 0.7214 - accuracy: 0.6718 - val_loss: 3.4027 - val_accuracy: 0.6190
Epoch 10/30
78/78 [==============================] - 4s 46ms/step - loss: 0.6487 - accuracy: 0.7017 - val_loss: 2.3754 - val_accuracy: 0.7024
Epoch 11/30
78/78 [==============================] - 4s 48ms/step - loss: 0.5622 - accuracy: 0.7421 - val_loss: 2.3811 - val_accuracy: 0.6786
Epoch 12/30
78/78 [==============================] - 4s 49ms/step - loss: 0.4573 - accuracy: 0.7631 - val_loss: 2.8950 - val_accuracy: 0.6548
Epoch 13/30
78/78 [==============================] - 3s 40ms/step - loss: 0.3960 - accuracy: 0.8011 - val_loss: 2.9509 - val_accuracy: 0.6548
Epoch 14/30
78/78 [==============================] - 3s 39ms/step - loss: 0.3730 - accuracy: 0.8052 - val_loss: 3.3788 - val_accuracy: 0.6905
Epoch 15/30
78/78 [==============================] - 3s 38ms/step - loss: 0.3513 - accuracy: 0.8205 - val_loss: 3.6829 - val_accuracy: 0.6786
Epoch 16/30
78/78 [==============================] - 3s 42ms/step - loss: 0.3274 - accuracy: 0.8618 - val_loss: 3.5317 - val_accuracy: 0.6310
Epoch 17/30
78/78 [==============================] - 3s 39ms/step - loss: 0.2836 - accuracy: 0.8989 - val_loss: 4.2462 - val_accuracy: 0.6310
Epoch 18/30
78/78 [==============================] - 3s 39ms/step - loss: 0.2527 - accuracy: 0.9070 - val_loss: 4.5958 - val_accuracy: 0.7143
Epoch 19/30
78/78 [==============================] - 3s 39ms/step - loss: 0.2801 - accuracy: 0.9208 - val_loss: 3.1512 - val_accuracy: 0.6310
Epoch 20/30
78/78 [==============================] - 3s 44ms/step - loss: 0.2177 - accuracy: 0.9200 - val_loss: 3.1430 - val_accuracy: 0.6786
Epoch 21/30
78/78 [==============================] - 3s 43ms/step - loss: 0.1961 - accuracy: 0.9402 - val_loss: 3.5284 - val_accuracy: 0.6548
Epoch 22/30
78/78 [==============================] - 3s 36ms/step - loss: 0.1632 - accuracy: 0.9475 - val_loss: 4.0473 - val_accuracy: 0.6548
Epoch 23/30
78/78 [==============================] - 2s 32ms/step - loss: 0.1217 - accuracy: 0.9628 - val_loss: 4.2579 - val_accuracy: 0.6548
Epoch 24/30
78/78 [==============================] - 3s 37ms/step - loss: 0.1153 - accuracy: 0.9580 - val_loss: 4.5488 - val_accuracy: 0.6548
Epoch 25/30
78/78 [==============================] - 4s 46ms/step - loss: 0.1160 - accuracy: 0.9749 - val_loss: 3.8619 - val_accuracy: 0.5952
Epoch 26/30
78/78 [==============================] - 3s 40ms/step - loss: 0.1174 - accuracy: 0.9669 - val_loss: 4.2386 - val_accuracy: 0.6071
Epoch 27/30
78/78 [==============================] - 3s 34ms/step - loss: 0.1073 - accuracy: 0.9685 - val_loss: 4.2801 - val_accuracy: 0.6071
Epoch 28/30
78/78 [==============================] - 3s 35ms/step - loss: 0.1074 - accuracy: 0.9644 - val_loss: 4.5132 - val_accuracy: 0.6071
Epoch 29/30
78/78 [==============================] - 3s 38ms/step - loss: 0.0872 - accuracy: 0.9709 - val_loss: 4.7892 - val_accuracy: 0.6429
Epoch 30/30
78/78 [==============================] - 3s 44ms/step - loss: 0.0720 - accuracy: 0.9733 - val_loss: 5.1136 - val_accuracy: 0.6429

Step 3: Choose the best performing classifier and pickle it¶

We tried various model and found that Model: Bi-directional_LSTM_early_stop_reducedLR seems to be performing well on original data in terms of precision and recall.

In [83]:
#saving the model as best model
%cp './saved_models/Bi-directional_LSTM_early_stop_reducedLR.h5' './best_model.h5'

Note: We are already saving all the models, so copying the model as best_model.h5